コード例 #1
0
 private void TurnEnded(BoardPlayerUI player)
 {
     if (player != null && player.enabled)
     {
         player.HideDice();
     }
 }
コード例 #2
0
 private void SetTurn(BoardPlayerUI player)
 {
     if (player != null && player.enabled)
     {
         player.DisplayDice();
     }
 }
コード例 #3
0
    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);
    }
コード例 #4
0
    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);
    }
コード例 #5
0
 public LocalPlayer(LudoType playerType, string playerName, BoardPlayer boardPlayer, BoardPlayerUI boardPlayerUI)
 {
     playerBoardType    = playerType;
     this.playerName    = playerName;
     playerOriginalType = playerType;
     this.boardPlayer   = boardPlayer;
     this.boardPlayerUI = boardPlayerUI;
     InitPawnData();
 }