Ejemplo n.º 1
0
        public bool DeactivateCharacterReturnWasAcrive(string characterName)
        {
            int characterIndex = CharacterDataSupplier.GetIndexFromName(Characters, characterName);

            if (ActiveCharacters.Contains(characterIndex))
            {
                ActiveCharacters.Remove(characterIndex);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
    void SetStatsBarsFromString(string name)
    {
        CharacterDataHolder characterHolder = FindObjectOfType <GameManager>().Characters;

        CreateCharacterStats(CharacterDataSupplier.GetIndexFromName(characterHolder, name));
    }
Ejemplo n.º 3
0
        public bool CheckIfCharacterIsActive(string characterName)
        {
            int characterIndex = CharacterDataSupplier.GetIndexFromName(Characters, characterName);

            return(ActiveCharacters.Contains(characterIndex));
        }