Exemplo n.º 1
0
 public static RealtimeProcessManager Get()
 {
     if (instance == null)
     {
         lock (typeof(RealtimeProcessManager))
         {
             if (instance == null)
             {
                 instance = new RealtimeProcessManager();
             }
         }
     }
     return(instance);
 }
Exemplo n.º 2
0
 public virtual void Finish()
 {
     if (!this.isDead)
     {
         Kill();
     }
     if (this.processesToFireWhenFinished != null)
     {
         for (LIterator <GameProcess> it = this.processesToFireWhenFinished.ListIterator(); it.HasNext();)
         {
             RealtimeProcessManager.Get().AddProcess(it.Next());
         }
     }
     if (this.processHost != null)
     {
         this.processHost.ProcessFinished(this.id, this);
     }
 }
Exemplo n.º 3
0
 public static void FreeStatic()
 {
     instance = null;
 }