// Activate all the queued objects protected void RunActivateQueue() { foreach (string key in AcitvateQueue) { Activate(key); } AcitvateQueue.Clear(); }
// 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); }