Пример #1
0
 void OnDisable()
 {
     if (InControlManager.Instance == this)
     {
         InputManager.ResetInternal();
     }
 }
Пример #2
0
 void OnDisable()
 {
     if (!isBeingDestroyed)
     {
         InputManager.ResetInternal();
     }
 }
Пример #3
0
 private void OnDisable()
 {
     SceneManager.sceneLoaded -= OnSceneWasLoaded;
     if (SingletonMonoBehavior <InControlManager, MonoBehaviour> .Instance == this)
     {
         InputManager.ResetInternal();
     }
 }
Пример #4
0
 void OnDisable()
 {
     if (IsNotTheSingleton)
     {
         return;
     }
                 #if UNITY_5_4_OR_NEWER
     SceneManager.sceneLoaded -= OnSceneWasLoaded;
                 #endif
     InputManager.ResetInternal();
 }
Пример #5
0
        void OnDisable()
        {
#if UNITY_5_4_OR_NEWER
            SceneManager.sceneLoaded -= OnSceneWasLoaded;
#endif

            if (InControlManager.Instance == this)
            {
                InputManager.ResetInternal();
            }
        }
Пример #6
0
 void OnDisable()
 {
     //SaveManager.Instance.SetValue(SaveManager.LastInputDevice, InputManager.ActiveDevice.Name);
     //SaveManager.Instance.Save();
     InputManager.ResetInternal();
 }
Пример #7
0
 void OnDisable()
 {
     InputManager.ResetInternal();
 }