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;
    }
Beispiel #2
0
 public static void InvokeRoundEnd() => RoundEndEvent?.Invoke();
Beispiel #3
0
 internal void InvokeRoundEndEvent() => RoundEndEvent?.Invoke();
Beispiel #4
0
 public void RoundEndButtonClick()
 {
     RoundEndEvent?.Invoke();
 }
Beispiel #5
0
 public string OnRoundEndInvoke(RoundResultInfo result)
 {
     OnRoundEnd.Invoke(OnRoundEndKey, result);
     return(OnRoundEndKey);
 }
Beispiel #6
0
 internal static void InvokeRoundEndEvent()
 {
     RoundEndEvent?.Invoke();
 }