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); }
public void Internal_RemoveSubGroup(UnitGroup child) { child.Internal_SetParentGroup(null); GetSubGroupsAsUG().Remove(child); //onSubGroupRemoved.Invoke(child); }