public void AssignCharacterToNextFreeSlot(Character character) { if (character != null) { for (int i = 0; i < MaxTeamSize; i++) { if (Team[i] == null) { Team[i] = character; PlayerUIController.AssignCharacterToTeamSlot(character, i); return; } } } }
public void AssignCharacterToNextFreeSlot(Character character) { if (character != null) { for (int i = 0; i < MaxTeamSize; i++) { if (Team[i] == null) { Team[i] = character; PlayerUIController.AssignCharacterToTeamSlot(character, i); return; } } } }