Beispiel #1
0
 //initial manager
 public void Start()
 {
     manager = GestureSourceManager.Instance;
     manager.RemoveDetectors();
     manager.AddDetector("recognize");
     manager.OnGesture += recognize;
     instance           = this;
 }
Beispiel #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.A))
     {
         Debug.Log("Press A");
         manager.RemoveDetectors();
         manager.AddDetector("recognize");
     }
 }
Beispiel #3
0
 // load scene form menu to Lesson One
 public void LoadLessonOne()
 {
     SceneManager.LoadScene("LessonOne");
     manager.AddDetector("walk");
     manager.OnGesture += walking;
 }