public static void Reset()
        {
            LockstepManager.Deactivate();
            GameObject copy = GameObject.Instantiate(MainGameManager.gameObject);

            GameObject.Destroy(MainGameManager.gameObject);
        }
Esempio n. 2
0
 void OnDisable()
 {
     if (Quited)
     {
         return;
     }
     LockstepManager.Deactivate();
 }
Esempio n. 3
0
 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();
        }
Esempio n. 5
0
 public static void LoadLevel(int levelName)
 {
     LockstepManager.Deactivate();
     SceneManager.LoadScene(levelName);
 }
 public static void LoadLevel(string levelName)
 {
     LockstepManager.Deactivate();
     Application.LoadLevel(levelName);
 }