Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.L))
     {
         detector.AddListener("Load", CreateFireball);
         Debug.Log("SAVE");
     }
     if (Input.GetKeyDown(KeyCode.S))
     {
         detector.AddListener("Send", LaunchFireball);
         Debug.Log("SAVE");
     }
     if (Input.GetKeyDown(KeyCode.N))
     {
         detector.AddListener("Nothing", DoNothing);
         Debug.Log("SAVE");
     }
     if (Input.GetKeyDown(KeyCode.C))
     {
         GestureDataManager.Clear();
         Debug.Log("CLEAR");
     }
 }