Example #1
0
        public override void Update()
        {
            game.Update();

            if (key.IsPressed(DX.KEY_INPUT_Z))
            {
                NextScene = new TitleScene(key);
            }
        }
Example #2
0
 public override void Update()
 {
     if (first)
     {
         game.BeginScript();
         first = false;
     }
     game.Update();
     if (game.Clear)
     {
         game.EndScript();
         NextScene = new ClearScene(key, game);
     }
     else if (game.Failed)
     {
         game.EndScript();
         NextScene = new TitleScene(key);
     }
 }