internal static void Deactivate()
        {
            DefaultMessageRaiser.EarlyDeactivate();

            if (GameStarted == false)
            {
                return;
            }
            Selector.Clear();
            AgentController.Deactivate();
            BehaviourHelperManager.Deactivate();
            ProjectileManager.Deactivate();
            EffectManager.Deactivate();
            ClientManager.Deactivate();

            ClientManager.Quit();
            PhysicsManager.Deactivate();
            GameStarted = false;
            LSServer.Deactivate();
            DefaultMessageRaiser.LateDeactivate();
            CoroutineManager.Deactivate();

            if (MainGameManager.gameObject != null)
            {
                GameObject.Destroy(MainGameManager.gameObject);
            }
        }
Ejemplo n.º 2
0
 public static void Stop()
 {
     if (IsPlayingBack)
     {
         AgentController.Deactivate();
         IsPlayingBack = false;
         StopStreaming();
     }
 }
 public static void Stop()
 {
     if (IsPlayingBack)
     {
         AgentController.Deactivate();
         IsPlayingBack           = false;
         CommandManager.sendType = CommandManager.defaultSendState;
         StopStreaming();
     }
 }
Ejemplo n.º 4
0
        public static void Stop()
        {
            if (IsPlayingBack)
            {
                AgentController.Deactivate();
                IsPlayingBack = false;
                StopStreaming();

                if (onIsPlayingBack != null)
                {
                    onIsPlayingBack.Invoke(IsPlayingBack);
                }
            }
            FrameManager.AdjustFramerate = true;
        }
        public static void Deactivate()
        {
            if (Started == false)
            {
                return;
            }
            Selector.Clear();
            AgentController.Deactivate();
            BehaviourHelper.GlobalDeactivate();
            ProjectileManager.Deactivate();
            ClientManager.Deactivate();

            TeamManager.Deactivate();
            ClientManager.NetworkHelper.Disconnect();
            Started = false;
        }
Ejemplo n.º 6
0
        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();
        }
Ejemplo n.º 7
0
        internal static void Deactivate()
        {
            DefaultMessageRaiser.EarlyDeactivate();

            if (GameStarted == false)
            {
                return;
            }
            Selector.Clear();
            AgentController.Deactivate();
            BehaviourHelperManager.Deactivate();
            ProjectileManager.Deactivate();
            EffectManager.Deactivate();
            ClientManager.Deactivate();

            TeamManager.Deactivate();
            ClientManager.Quit();
            PhysicsManager.Deactivate();
            GameStarted = false;
            LSServer.Deactivate();
            DefaultMessageRaiser.LateDeactivate();
        }