Example #1
0
    private void OnGameUpdated(GameUpdate gameUpdateData)
    {
        _playerHand.text = DisplayResultAsText(gameUpdateData.resultPlayer);
        _enemyHand.text  = DisplayResultAsText(gameUpdateData.resultOpponent);

        _session.Player.ChangeCoinAmount(gameUpdateData.coinsAmountChange);
        _session.AddGameUpdate(gameUpdateData);

        DisableControl();
        _resultPresentationManager.HandleResult(gameUpdateData.drawResult, (Action)(() =>
        {
            _moneyManager.UpdateMoney(gameUpdateData, (Action)(() => {
                this._opponentManager.HandleResult(gameUpdateData.drawResult, (Action)this.ReturnControl);
            }));
        }));

        _betController.UpdateUI();
    }