示例#1
0
 public static TurretManager GetInstance()
 {
     if (_instance == null)
     {
         _instance = new TurretManager();
     }
     return _instance;
 }
示例#2
0
 public MissileLauncherAdapter()
 {
     m_launcher = TurretManager.GetInstance();
 }
示例#3
0
 protected virtual void Dispose(bool dispose_others)
 {
     if (dispose_others == true)
     {
         this.m_launcher = null;
     }
 }
示例#4
0
 /// <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;
 }
示例#5
0
 /// <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;
 }