protected virtual void OnGameFinishEvent(GameFinishEventArgs e) { if (GameFinishEvent != null) GameFinishEvent.Invoke(this, e); }
/// <summary> /// GameFinish Event /// </summary> /// <param name="sender"></param> /// <param name="gameFinishEventArgs"></param> private void OnGameFinishEvent(object sender, GameFinishEventArgs gameFinishEventArgs) { this.ShowInformationOverlay(gameFinishEventArgs.Won ? "CONGRATULATION - you won" : "SORRY - you lost this game", true); //this.CloseTrigger = true; }