Esempio n. 1
0
    private void onCompleteOtherPlayerAnimation(ChangeTurnEvent changeTurnEvent)
    {
        _gameMatchCore.EndPlayerTurn();
        _gameMatchCore.playerGroup.SetActivePlayer(changeTurnEvent.activePlayerIndex);
        _gameMatchCore.ClearCommandBuffer();

        _playFieldController.RefreshHandView();
        _playFieldController.RefreshCustomersView();

        _playFieldController.SetPlayerScoreView(
            changeTurnEvent.previousPlayerIndex,
            changeTurnEvent.prevPlayerScore);

        RaiseEventOptions options = new RaiseEventOptions();

        options.Receivers = ReceiverGroup.MasterClient;
        PhotonNetwork.RaiseEvent(NetworkOpCodes.PLAYBACK_CONFIRMED, null, true, options);
    }
Esempio n. 2
0
 private void onEndTurn()
 {
     _gameMatchCore.EndPlayerTurn();
 }