コード例 #1
0
        void OnEndTurnMessage()
        {
            if (playingPlayer == null)
            {
                Log.Warn("Already cleaned up");
                return;
            }

            playingPlayer.SetPlaying(false);
            playingPlayer = null;
        }
コード例 #2
0
        void IsMyTurn(TBPlayer player)
        {
            if (playingPlayer != null)
            {
                Log.Error("A player is already playing here!");
                return;
            }

            playingPlayer = player;
            playingPlayer.SetPlaying(true);

            if (player.IsLocal())
            {
                StartCoroutine(PlayTurn());
            }
        }
コード例 #3
0
 protected abstract void OnEndTurn(TBPlayer player);
コード例 #4
0
 protected abstract void OnStartTurn(TBPlayer player);