public void UpdateTile() { internalText.text = gameController.GetPlayersTurn(); interactiveButton.image.sprite = gameController.GetPlayerSprite(); interactiveButton.interactable = false; gameController.EndTurn(); }
/// <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()); }
private void onBtnEndTurnClick() { gsc.EndTurn(); }