public override void Update() { game.Update(); if (key.IsPressed(DX.KEY_INPUT_Z)) { NextScene = new TitleScene(key); } }
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); } }