Exemple #1
0
        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();

            DefaultMessageRaiser.Reset();
        }
        public static void Stop()
        {
            if (IsPlayingBack)
            {
                AgentController.Deactivate();
                IsPlayingBack = false;
                StopStreaming();

                if (onIsPlayingBack != null)
                {
                    onIsPlayingBack.Invoke(IsPlayingBack);
                }
            }
            FrameManager.AdjustFramerate = true;
        }