Пример #1
0
 // Activate all the queued objects
 protected void RunActivateQueue()
 {
     foreach (string key in AcitvateQueue)
     {
         Activate(key);
     }
     AcitvateQueue.Clear();
 }
Пример #2
0
 // public function for queing a game object to be loaded at the end of this update loop
 public void QueueGameObject(GameObject gameObject)
 {
     LoadGameObject(gameObject);
     AcitvateQueue.Add(gameObject.Key);
 }