private void TurnEnded(BoardPlayerUI player) { if (player != null && player.enabled) { player.HideDice(); } }
private void SetTurn(BoardPlayerUI player) { if (player != null && player.enabled) { player.DisplayDice(); } }
private void CreateLocalPlayer(LudoType playerType, string playerName) { BoardPlayerUI boardPlayerUI = boardUI.GetPlayer(playerType); BoardPlayer boardPlayer = board.CreatePlayer(playerType); boardPlayerUI.SetUITileManager(uiTileManager); playerManager.CreateLocalPlayer(playerType, playerName, boardPlayer, boardPlayerUI); }
public void CreateLocalPlayer(LudoType playerType, string playerName, BoardPlayer boardPlayer, BoardPlayerUI boardPlayerUI) { var player = new LocalPlayer(playerType, playerName, boardPlayer, boardPlayerUI); rulesManager.AddPlayer(player); players.Add(player); }
public LocalPlayer(LudoType playerType, string playerName, BoardPlayer boardPlayer, BoardPlayerUI boardPlayerUI) { playerBoardType = playerType; this.playerName = playerName; playerOriginalType = playerType; this.boardPlayer = boardPlayer; this.boardPlayerUI = boardPlayerUI; InitPawnData(); }