Example #1
0
        public void OnBoardResult(PlayerBoardResult playerBoardResult)
        {
            if (playerBoardResult.playerID != Network.player.ToString())
            {
                return;
            }

            CmdOnBoardResult(playerBoardResult);
        }
Example #2
0
        // todo: make generic command (e.g. CmdSetUserBoardData)
        public override void SetUserBoardResult(PlayerBoardResult playerBoardResult)
        {
            bool playerDataFound = false;

            for (int x = 0; !playerDataFound && x < boardResultsList.Count; x++)
            {
                if (boardResultsList[x].playerID == playerBoardResult.playerID)
                {
                    playerDataFound = true;
                }
            }

            if (!playerDataFound)
            {
                boardResultsList.Add(playerBoardResult);
            }
        }
Example #3
0
 public virtual void SetUserBoardResult(PlayerBoardResult playerBoardResult)
 {
 }
Example #4
0
 public void CmdOnBoardResult(PlayerBoardResult playerBoardResult)
 {
     BoardManager.GetServerBoard().GetComponent <BaseBoard>().SetUserBoardResult(playerBoardResult);
 }