예제 #1
0
 private void CastAbilitiesAll()
 {
     foreach (var hero in raid)
     {
         Console.WriteLine(hero.CastAbility());
     }
 }
예제 #2
0
 private void CastAllAbilities()
 {
     foreach (var hero in raid)
     {
         writer.WriteLine(hero.CastAbility());
     }
 }
예제 #3
0
 private void CreateHero(EnumHeroes eHero)
 {
     MyHero         = (IHero)heroFactroy.Create(eHero);
     MyHero.Ability = (IAbility)abilityFactory.Create(eHero);
     Debug.Log(MyHero.Health);
     MyHero.Attack();
     MyHero.CastAbility();
     MyHero.Death();
     MyHero.Move();
     MyHero.Resurection();
 }
예제 #4
0
 private void CastAbility(IHero item)
 => this.writer.WriteLine(item.CastAbility());