private void Restart() { playerHP = 100; player.position = new MFVector(0.0f, 0.0f); player.Spawn(); state = MainGameState.Running; GameStateEventArgs args = new GameStateEventArgs(); args.state = state; OnEventGameState(this, args); }
private void GameOver() { foreach (MFBullet b in listBullet) { b.Destroy(); } listBullet.Clear(); player.Destroy(); state = MainGameState.GameOver; GameStateEventArgs args = new GameStateEventArgs(); args.state = state; OnEventGameState(this, args); }