private void CastAbilitiesAll() { foreach (var hero in raid) { Console.WriteLine(hero.CastAbility()); } }
private void CastAllAbilities() { foreach (var hero in raid) { writer.WriteLine(hero.CastAbility()); } }
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(); }
private void CastAbility(IHero item) => this.writer.WriteLine(item.CastAbility());