Exemple #1
0
 /// <summary>
 /// Singleton accessor to ArTouchInput
 /// </summary>
 public static ArTouchInput GetInstance()
 {
     if (_instance == null)
     {
         _instance = new ArTouchInput();
     }
     return(_instance);
 }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     if ((canBeat) || (GetComponent <DeathCondition>().chargeDefibrilator))
     {
         ArTouchInput.GetInstance().Update();
     }
     //if (canBeat&&(isThrown && ((Input.touchCount > 0)||(Input.GetMouseButtonDown(0))))){
     //	Beat();
     //}
     //Splat ();
 }
Exemple #3
0
 // Update is called once per frame
 void Update()
 {
     // Need to call Update on ArTouchInput otherwise no touch controls will happen :(
     ArTouchInput.GetInstance().Update();
 }
 /// <summary>
 /// Singleton accessor to ArTouchInput
 /// </summary>
 public static ArTouchInput GetInstance()
 {
     if (_instance == null)
     {
         _instance = new ArTouchInput();
     }
     return _instance;
 }