Skip to content

Instantly share code, notes, and snippets.

@divide-by-zero
Created May 16, 2015 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save divide-by-zero/b9ccfe082cf40a89c1d2 to your computer and use it in GitHub Desktop.
Save divide-by-zero/b9ccfe082cf40a89c1d2 to your computer and use it in GitHub Desktop.
GearVRHelper使用例
using UnityEngine;
public class TouchEventTest : MonoBehaviour {
void Start () {
GearVRHelper.OnBackHold += () => {
Debug.Log("BACK HOLD!");
};
GearVRHelper.OnBackPush += () => {
Debug.Log("BACK PUSH!");
};
GearVRHelper.OnTap += () => {
Debug.Log("Tap!");
};
GearVRHelper.OnFlick += (x, y) => {
Debug.Log("Flick:" + x + "," + y);
};
GearVRHelper.OnDrag += (x, y) => {
Debug.Log("Drag:" + x + "," + y);
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment