예제 #1
0
    private void ShowStart()
    {
        screenUI.SetActive(false);
        startScreen.gameObject.SetActive(true);
        startScreen.Show(true);

        accordion.gameObject.SetActive(false);
        quiz.gameObject.SetActive(false);

        accordion.Reset();
    }
예제 #2
0
파일: Program.cs 프로젝트: sytolk/SoftUni
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     InitialScreen = new StartScreen();
     InitialScreen.Show();
     Application.Run();
 }
        private void OnEnable()
        {
            foreach (var enemy in enemies)
            {
                enemy.OnCalm  += CountCalmed;
                enemy.OnDeath += HandleDeath;
            }

            player.OnDeath += HandleDeadPlayer;

            startScreen.Show();
            endScreen.gameObject.SetActive(false);
        }
예제 #4
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     Services.AddService(typeof(SpriteBatch), spriteBatch);
     normalFont = Content.Load<SpriteFont>("normal");
     background = Content.Load<Texture2D>("gryphon");
     startScreen = new StartScreen(this, normalFont, background);
     Components.Add(startScreen);
     background = Content.Load<Texture2D>("fire-dragon");
     helpScreen = new HelpScreen(this, background);
     Components.Add(helpScreen);
     startScreen.Show();
     helpScreen.Hide();
     activeScreen = startScreen;
 }
예제 #5
0
 private void buttonSub2_Click(object sender, EventArgs e)
 {
     s.Show();
     this.Hide();
 }