/// <summary> /// Singleton accessor to ArTouchInput /// </summary> public static ArTouchInput GetInstance() { if (_instance == null) { _instance = new ArTouchInput(); } return(_instance); }
// 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 (); }
// 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; }