public static void Reset() { LockstepManager.Deactivate(); GameObject copy = GameObject.Instantiate(MainGameManager.gameObject); GameObject.Destroy(MainGameManager.gameObject); }
void OnDisable() { if (Quited) { return; } LockstepManager.Deactivate(); }
void OnDisable() { Instance = null; if (Quited) { return; } LockstepManager.Deactivate(); }
internal static void Deactivate() { DefaultMessageRaiser.EarlyDeactivate(); if (Started == false) { return; } Selector.Clear(); AgentController.Deactivate(); MainGameManager.MainInterfacingHelper.Deactivate(); BehaviourHelperManager.Deactivate(); ProjectileManager.Deactivate(); ClientManager.Deactivate(); LockstepManager.Deactivate(); TeamManager.Deactivate(); ClientManager.NetworkHelper.Disconnect(); Started = false; DefaultMessageRaiser.LateDeactivate(); }
public static void LoadLevel(int levelName) { LockstepManager.Deactivate(); SceneManager.LoadScene(levelName); }
public static void LoadLevel(string levelName) { LockstepManager.Deactivate(); Application.LoadLevel(levelName); }