예제 #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            this.spriteBatch = new SpriteBatch(GraphicsDevice);

            Services.AddService(typeof(SpriteBatch), spriteBatch);
            this.scene1 = new OpeningScene(this);
            this.scene2 = new InstructionsScene(this, scene1);
            this.scene4 = new GameOverScene(this);
            this.scene3 = new GamePlayScene(this, scene4);
            this.scene1.Show();

            Components.Add(scene1);
            Components.Add(scene2);
            Components.Add(scene3);
            Components.Add(scene4);

            // TODO: use this.Content to load your game content here
        }
예제 #2
0
    //InstructionsScene

    public void ClickOnDone()
    {
        InstructionsScene.SetActive(false);
        MenuScene.SetActive(true);
    }
예제 #3
0
 public void ClickOnInstructions()
 {
     MenuScene.SetActive(false);
     InstructionsScene.SetActive(true);
 }