Beispiel #1
0
 public void RemoveChild(GameObject deleteObject)
 {
     foreach (GameObject child in childObjects)
     {
         if (child.Equals(deleteObject))
         {
             childObjects.Remove(child);
             break;
         }
     }
 }
Beispiel #2
0
 public GameObject SearchChild(GameObject searchObject)
 {
     foreach (GameObject child in childObjects)
     {
         if (child.Equals(searchObject))
         {
             return child;
         }
     }
     return null;
 }
Beispiel #3
0
 public void AddChild(GameObject newGameObject)
 {
     childObjects.Add(newGameObject);
 }