Exemplo n.º 1
0
    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;
                }
            }
        }
    }