void OnDisable()
 {
     if (InControlManager.Instance == this)
     {
         InputManager.ResetInternal();
     }
 }
 void OnDisable()
 {
     if (!isBeingDestroyed)
     {
         InputManager.ResetInternal();
     }
 }
Beispiel #3
0
 private void OnDisable()
 {
     SceneManager.sceneLoaded -= OnSceneWasLoaded;
     if (SingletonMonoBehavior <InControlManager, MonoBehaviour> .Instance == this)
     {
         InputManager.ResetInternal();
     }
 }
Beispiel #4
0
 void OnDisable()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
                 #if UNITY_5_4_OR_NEWER
     SceneManager.sceneLoaded -= OnSceneWasLoaded;
                 #endif
     InputManager.ResetInternal();
 }
        void OnDisable()
        {
#if UNITY_5_4_OR_NEWER
            SceneManager.sceneLoaded -= OnSceneWasLoaded;
#endif

            if (InControlManager.Instance == this)
            {
                InputManager.ResetInternal();
            }
        }
Beispiel #6
0
 void OnDisable()
 {
     //SaveManager.Instance.SetValue(SaveManager.LastInputDevice, InputManager.ActiveDevice.Name);
     //SaveManager.Instance.Save();
     InputManager.ResetInternal();
 }
 void OnDisable()
 {
     InputManager.ResetInternal();
 }