/// <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; } }
} ///< 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(); }
/// <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(); }
/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Instantiate() { _instance = new SystemHandler(); Env.System.GetISystemEventDispatcher().RegisterListener(_instance); }