protected virtual void OnPlayerFinishEvent(PlayerFinishEvent e) { if (PlayerFinishEvent != null) PlayerFinishEvent.Invoke(this, e); }
/// <summary> /// PlayerFinish Event /// </summary> /// <param name="sender"></param> /// <param name="playerFinishEventArgs"></param> private void OnPlayerFinishEvent(object sender, PlayerFinishEvent playerFinishEventArgs) { this.PauseStopwatch(); this.ShowInformationOverlay("You finished this Game in " + playerFinishEventArgs.Duration / 1000 + " seconds."); }