Пример #1
0
        // --------------------------------------------------------------------------------------------
        private void Initializing_Exit()
        {
            InitializationController initializationController = gameObject.RequireComponent <InitializationController>();

            initializationController.Completed -= InitializationController_Completed;
            initializationController.enabled    = false;
        }
Пример #2
0
        // --------------------------------------------------------------------------------------------
        private void Initializing_Enter()
        {
            if (ForceOffline)
            {
                Config      = Config.DefaultConfig();
                ClientState = EClientState.ForceOffline;
            }

            InitializationController initializationController = gameObject.RequireComponent <InitializationController>();

            initializationController.Completed += InitializationController_Completed;
            initializationController.enabled    = true;
        }