/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal ControllerManager() { if (instance == null) { instance = this; } }
/// <summary> /// Internal constructor. This class cannot be instantiated externally. /// </summary> internal ControllerManager() : base() { if ( instance == null ) { instance = this; } }
/// <summary> /// Called when the engine is shutting down. /// </summary> protected override void dispose(bool disposeManagedResources) { if (!IsDisposed) { if (disposeManagedResources) { this.controllers.Clear(); this.controllers = null; instance = null; } } base.dispose(disposeManagedResources); }
/// <summary> /// Called when the engine is shutting down. /// </summary> protected override void dispose( bool disposeManagedResources ) { if ( !IsDisposed ) { if ( disposeManagedResources ) { this.controllers.Clear(); this.controllers = null; instance = null; } } base.dispose( disposeManagedResources ); }
/// <summary> /// Called when the engine is shutting down. /// </summary> public void Dispose() { controllers.Clear(); instance = null; }