示例#1
0
 public void Internal_AddSubGroup(UnitGroup child)
 {
     if (child.GetParentGroupAsUG() != null)
     {
         child.GetParentGroupAsUG().Internal_RemoveSubGroup(child);
     }
     child.Internal_SetParentGroup(this);
     GetSubGroupsAsUG().Add(child);
     //onSubGroupAdded.Invoke(child);
 }
示例#2
0
 public void Internal_RemoveSubGroup(UnitGroup child)
 {
     child.Internal_SetParentGroup(null);
     GetSubGroupsAsUG().Remove(child);
     //onSubGroupRemoved.Invoke(child);
 }