/// <summary> /// Unity3d Start handler. /// </summary> protected virtual void OnEnable() { // TouchManager might be different in another scene touchManager = TouchManager.Instance; gestureManagerInstance = GestureManager.Instance as GestureManagerInstance; if (touchManager == null) { Debug.LogError("No TouchManager found! Please add an instance of TouchManager to the scene!"); } if (gestureManagerInstance == null) { Debug.LogError("No GesturehManager found! Please add an instance of GesturehManager to the scene!"); } if (sendMessageTarget == null) { sendMessageTarget = gameObject; } INTERNAL_Reset(); }
/// <summary> /// Unity3d Start handler. /// </summary> protected virtual void OnEnable() { // TouchManager might be different in another scene touchManager = TouchManager.Instance; gestureManagerInstance = GestureManager.Instance as GestureManagerInstance; if (touchManager == null) Debug.LogError("No TouchManager found! Please add an instance of TouchManager to the scene!"); if (gestureManagerInstance == null) Debug.LogError("No GesturehManager found! Please add an instance of GesturehManager to the scene!"); if (sendMessageTarget == null) sendMessageTarget = gameObject; INTERNAL_Reset(); }