Пример #1
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Destroy()
 {
     if (_instance != null)
     {
         Env.System.GetISystemEventDispatcher().RemoveListener(_instance);
         _instance.Dispose();
         _instance = null;
     }
 }
Пример #2
0
        }                                                                               ///< Indicates whether CryEngine is run in Editor mode.

        /// <summary>
        /// Called by framework. Do not call directly.
        /// </summary>
        public static void Initialize()
        {
            if (_isInitialized)
            {
                return;
            }
            _isInitialized = true;

            SystemHandler.Instantiate();
            CryEngine.Input.Instanciate();
            Screen.Instanciate();
            CryEngine.Mouse.Instantiate();
            SceneManager.Instantiate();
            GameFramework.Instantiate();
            LevelSystem.Instantiate();
        }
Пример #3
0
        /// <summary>
        /// Called by framework. Do not call directly.
        /// </summary>
        public static void Shutdown()
        {
            if (!_isInitialized)
            {
                return;
            }
            _isInitialized = false;

            //EntityFramework.Destroy ();
            GameFramework.Destroy();
            SceneManager.Destroy();
            LevelSystem.Destroy();
            CryEngine.Mouse.Destroy();
            Screen.Destroy();
            CryEngine.Input.Destroy();
            SystemHandler.Destroy();
        }
Пример #4
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public static void Instantiate()
 {
     _instance = new SystemHandler();
     Env.System.GetISystemEventDispatcher().RegisterListener(_instance);
 }