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();
        }
Пример #2
0
 void StartGameWithHeroType(HeroType type)
 {
     HideUIElements(true, true);
     scene.DefaultPlayerHeroType = type;
     scene.StartLevel();
 }