public static TurretManager GetInstance() { if (_instance == null) { _instance = new TurretManager(); } return _instance; }
public MissileLauncherAdapter() { m_launcher = TurretManager.GetInstance(); }
protected virtual void Dispose(bool dispose_others) { if (dispose_others == true) { this.m_launcher = null; } }
/// <summary> /// actualy disposal method /// </summary> /// <param name="dispose_others"></param> protected virtual void Dispose(bool dispose_others) { if (dispose_others == true) { // is there anything we need to check? } _instance = null; }
/// <summary> /// actualy disposal method /// </summary> /// <param name="dispose_others"></param> protected virtual void Dispose(bool dispose_others) { if (dispose_others == true) { this.ActiveTurret.Dispose(); } _instance = null; }