private void OnApplicationPause(bool isPaused) { if (!isPaused) { return; } SavedVariables.OnExitPlayMode(); ApplicationVariables.OnExitPlayMode(); }
private static void RuntimeInitializeOnLoadBeforeSceneLoad() { UnityThread.RuntimeInitialize(); Ensure.OnRuntimeMethodLoad(); Recursion.OnRuntimeMethodLoad(); OptimizedReflection.OnRuntimeMethodLoad(); SavedVariables.OnEnterPlayMode(); ApplicationVariables.OnEnterPlayMode(); ReferenceCollector.Initialize(); }
private void OnApplicationQuit() { SavedVariables.OnExitPlayMode(); ApplicationVariables.OnExitPlayMode(); }