예제 #1
0
 public void AddChild(GameObject2D child)
 {
     if (!Children.Contains(child))
     {
         Children.Add(child);
         child.Parent = this;
     }
 }
예제 #2
0
 public void RemoveChild(GameObject2D child)
 {
     if (Children.Remove(child))
         child.Parent = null;
 }