private void OnHeroChoose(GameButton source, object hero) { source.SetDisabled(true); heroes.Add((Hero)hero); actualHero = (Hero)hero; subScreen = SubScreen.CLASS_SCREEN; FocusedImages.Clear(); InitClassScreen(); }
private void OnClassChoose(GameButton source, object heroClass) { source.SetDisabled(true); actualHero.SetHeroClass((IHeroClass)heroClass); if (heroes.Count == NumOfHeroes) { MainGame.EVENT_BUS.Post(new HeroesChoosenEvent(this, heroes)); } else { subScreen = SubScreen.CLASS_SCREEN; FocusedImages.Clear(); InitHeroScreen(); } }
private void OnHeroChoose(GameButton source, object hero) { source.SetDisabled(true); var actHero = hero as Hero; heroDialog.Hide(); actHero.Upkeep(); ActCharacter = actHero; }