Пример #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;
 }
Пример #3
0
 /// <summary>
 /// Activates or deactivates the specified state.
 /// </summary>
 /// <param name="stateName">The name of the state to change the active status of.</param>
 /// <param name="active">Should the state be activated?</param>
 public void SetState(string stateName, bool active)
 {
     StateManager.SetState(this, m_States, stateName, active);
 }