Beispiel #1
0
        private void OnApplicationPause(bool isPaused)
        {
            if (!isPaused)
            {
                return;
            }

            SavedVariables.OnExitPlayMode();
            ApplicationVariables.OnExitPlayMode();
        }
Beispiel #2
0
        private static void RuntimeInitializeOnLoadBeforeSceneLoad()
        {
            UnityThread.RuntimeInitialize();

            Ensure.OnRuntimeMethodLoad();

            Recursion.OnRuntimeMethodLoad();

            OptimizedReflection.OnRuntimeMethodLoad();

            SavedVariables.OnEnterPlayMode();

            ApplicationVariables.OnEnterPlayMode();

            ReferenceCollector.Initialize();
        }
Beispiel #3
0
 private void OnApplicationQuit()
 {
     SavedVariables.OnExitPlayMode();
     ApplicationVariables.OnExitPlayMode();
 }