예제 #1
0
 /// <summary>
 /// Reset the initialized variable when the scene is no longer loaded.
 /// </summary>
 /// <param name="scene">The scene that was unloaded.</param>
 private void SceneUnloaded(Scene scene)
 {
     s_Initialized = false;
     s_Instance    = null;
     SceneManager.sceneUnloaded -= SceneUnloaded;
 }
예제 #2
0
 private static void DomainReset()
 {
     s_Initialized = false;
     s_Instance    = null;
 }