示例#1
0
 public void UpdateTile()
 {
     internalText.text = gameController.GetPlayersTurn();
     interactiveButton.image.sprite = gameController.GetPlayerSprite();
     interactiveButton.interactable = false;
     gameController.EndTurn();
 }
示例#2
0
        /// <summary>
        /// Function for when a player ends their turn. This just clears the screen and
        /// resets the _firstPlay value then puts them in the waiting gamestate
        /// </summary>
        private void EndTurn()
        {
            System.Threading.Thread.Sleep(200);
            var data = GetMonsterList();

            if (data.Any(mon => mon.CanYield))
            {
                return;
            }
            _textPrompts.Clear();
            _diceRow.Clear();
            _diceRow.Hidden = true;

            //RollingDice.Clear();
            //RollingDice.Hidden = true;

            _rollButton.Hidden = true;

            _firstPlay = true;

            _gameState = GameState.Waiting;
            Client.SendActionPacket(GameStateController.EndTurn());
            Client.SendActionPacket(GameStateController.StartTurn());
        }
示例#3
0
 private void onBtnEndTurnClick()
 {
     gsc.EndTurn();
 }