void StartGameWithHeroType(HeroType type)
        {
            NSAnimationContext.CurrentContext.Duration    = 2.0f;
            ((NSImageView)gameLogo.Animator).AlphaValue   = 0.0f;
            ((NSButton)archerButton.Animator).AlphaValue  = 0.0f;
            ((NSButton)warriorButton.Animator).AlphaValue = 0.0f;

            scene.DefaultPlayerHeroType = type;
            scene.StartLevel();
        }
Beispiel #2
0
 void StartGameWithHeroType(HeroType type)
 {
     HideUIElements(true, true);
     scene.DefaultPlayerHeroType = type;
     scene.StartLevel();
 }