Beispiel #1
0
 private void OnHeroChoose(GameButton source, object hero)
 {
     source.SetDisabled(true);
     heroes.Add((Hero)hero);
     actualHero = (Hero)hero;
     subScreen = SubScreen.CLASS_SCREEN;
     FocusedImages.Clear();
     InitClassScreen();
 }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 private void OnHeroChoose(GameButton source, object hero)
 {
     source.SetDisabled(true);
     var actHero = hero as Hero;
     heroDialog.Hide();
     actHero.Upkeep();
     ActCharacter = actHero;
 }