private void EndRound(bool playerWon, OutcomeReason reason) { if (GameConstants.DEBUG_MODE) { string name = playerWon ? "player" : "opponent"; string reasonStr = reason.ToReadableString(); Utils.DebugLog($"Round ended: {name} wins because of {reasonStr}."); } RoundEndEvent.Invoke(playerWon, reason); _playingRound = false; }
public static void InvokeRoundEnd() => RoundEndEvent?.Invoke();
internal void InvokeRoundEndEvent() => RoundEndEvent?.Invoke();
public void RoundEndButtonClick() { RoundEndEvent?.Invoke(); }
public string OnRoundEndInvoke(RoundResultInfo result) { OnRoundEnd.Invoke(OnRoundEndKey, result); return(OnRoundEndKey); }
internal static void InvokeRoundEndEvent() { RoundEndEvent?.Invoke(); }