private LeapManager manager; //This provides access to leap data #endregion Fields #region Methods // Use this for initialization void Start() { manager = Camera.main.GetComponent<LeapManager>(); //This links to some leap data listener = new Leap.Listener (); //initializes the listener controller = new Leap.Controller (); //Initializes the controler controller.AddListener (listener); //Pipes the listener stream into the controler }
// Use this for initialization void Start() { print("Inizializzo controller"); listener = new Leap.Listener(); controller = new Leap.Controller(); controller.AddListener(listener); controller.EnableGesture(Leap.Gesture.GestureType.TYPECIRCLE); controller.EnableGesture(Leap.Gesture.GestureType.TYPEKEYTAP); controller.EnableGesture(Leap.Gesture.GestureType.TYPESCREENTAP); controller.EnableGesture(Leap.Gesture.GestureType.TYPESWIPE); hasPaused = false; }