/// <summary> /// method called on economy crises /// </summary> private void OnEconomyCrises() { // check if game over dialog exist if (this._gameOverDialog == null) { // create game over dialog this._gameOverDialog = new GameOver(this._game); // show dialog this._gameOverDialog.Show(); // hide current window this.Hide(); } // set economy crises information this._gameOverDialog.SetInformationEconomyCrises(); }
/// <summary> /// method called on attack /// </summary> private void OnAttack() { // check if game over dialog exist if (this._gameOverDialog == null) { // create game over dialog this._gameOverDialog = new GameOver(this._game); // show dialog this._gameOverDialog.Show(); // hide current window this.Hide(); } // set attack information this._gameOverDialog.SetInformationAttack(); }