Пример #1
0
 public void DisplayCharacters(bool isVisible)
 {
     if (!isVisible)
     {
         CharacterDataHolder characterHolder = FindObjectOfType <ManagementScripts.GameManager>().Characters;
         textDisplayTemplate.GetComponent <IDisplayCharacters>().Display(CharacterDataSupplier.AllCharacterNames(characterHolder));
     }
 }
Пример #2
0
        public void can_create_a_random_character_and_verify_exists()
        {
            string[] fakeStats = { "stat1", "stat2" };

            CharacterDataHolder characterDataHolder = new CharacterDataHolder(fakeStats);

            Character character = CharacterDataCreator.CreateRandomCharacter(characterDataHolder, 1, 2);

            Assert.NotNull(CharacterDataSupplier.AllCharacterNames(characterDataHolder));
            Assert.AreEqual(character.CharacterName, CharacterDataSupplier.AllCharacterNames(characterDataHolder)[CharacterDataSupplier.AllCharacterNames(characterDataHolder).Length - 1]);
        }