예제 #1
0
 public static TurretManager GetInstance()
 {
     if (_instance == null)
     {
         _instance = new TurretManager();
     }
     return _instance;
 }
예제 #2
0
파일: ILauncher.cs 프로젝트: zactyy/cpts323
 public MissileLauncherAdapter()
 {
     m_launcher = TurretManager.GetInstance();
 }
예제 #3
0
파일: ILauncher.cs 프로젝트: zactyy/cpts323
 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;
 }