/// <summary> /// Unity OnDestroy callback. /// </summary> protected virtual void OnDisable() { if (manager != null) { manager.RemoveInput(this); manager = null; } }
/// <summary> /// Unity OnDestroy callback. /// </summary> protected virtual void OnDisable() { if (touchManager != null) { touchManager.RemoveInput(this); touchManager = null; } }
/// <summary> /// Unity OnEnable callback. /// </summary> protected virtual void OnEnable() { manager = TouchManagerInstance.Instance; if (manager == null) { throw new InvalidOperationException("TouchManager instance is required!"); } }
/// <summary> /// Unity OnEnable callback. /// </summary> private void OnEnable() { touchManager = TouchManagerInstance.Instance; if (touchManager == null) { throw new InvalidOperationException("TouchManager instance is required!"); } touchManager.AddInput(this); init(); INTERNAL_UpdateResolution(); }
/// <summary> /// Unity OnDestroy callback. /// </summary> protected virtual void OnDisable() { manager = null; }
/// <summary> /// Unity OnEnable callback. /// </summary> protected virtual void OnEnable() { manager = TouchManagerInstance.Instance; if (manager == null) throw new InvalidOperationException("TouchManager instance is required!"); }