예제 #1
0
 public void Add(GameObject obj)
 {
     if (!gameObjects.Contains(obj) && !addedGameObjects.Contains(obj))
     {
         addedGameObjects.Push(obj);
     }
 }
예제 #2
0
 public void Remove(GameObject obj)
 {
     if (gameObjects.Contains(obj) && !removedGameObjects.Contains(obj))
     {
         removedGameObjects.Push(obj);
     }
 }