private void ShowStart() { screenUI.SetActive(false); startScreen.gameObject.SetActive(true); startScreen.Show(true); accordion.gameObject.SetActive(false); quiz.gameObject.SetActive(false); accordion.Reset(); }
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); }
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; }
private void buttonSub2_Click(object sender, EventArgs e) { s.Show(); this.Hide(); }