public void AddPlayer(LobbyPlayer player)
        {
            _players.Add(player);

            player.transform.SetParent(playerListContentTransform, false);

            PlayerListModified();
        }
        public void AddPlayer(LobbyPlayer player)
        {
            _players.Add(player);

            player.transform.SetParent(playerListContentTransform, false);
            addButtonRow.transform.SetAsLastSibling();

            PlayerListModified();
        }
        public void AddPlayer(LobbyPlayer player)
        {
            player.transform.SetParent (playerListContentTransform, false);

            if (playerListContentTransform.childCount == 2) {
                float playerY = player.transform.position.y - 35;
                player.transform.position = new Vector3(player.transform.position.x, playerY, player.transform.position.z);
                Debug.Log("Position changed");
            }
        }
Beispiel #4
0
    public override void OnLobbyServerSceneLoadedForPlayer(NetworkManager manager, GameObject lobbyPlayer, GameObject gamePlayer)
    {
        if (lobbyPlayer == null)
        {
            return;
        }

        UnityStandardAssets.Network.LobbyPlayer lp = lobbyPlayer.GetComponent <UnityStandardAssets.Network.LobbyPlayer>();

        if (lp != null)
        {
            GameManager.AddTank(gamePlayer, lp.slot, lp.playerColor, lp.nameInput.text, lp.playerControllerId);
        }
    }
 public void RemovePlayer(LobbyPlayer player)
 {
     player.RemovePlayer();
 }
 public void RemovePlayer(LobbyPlayer player)
 {
     _players.Remove(player);
     PlayerListModified();
 }
Beispiel #7
0
        public void AddPlayer(LobbyPlayer player) {
			player.transform.SetParent (playerListContentTransform, false);
		}
Beispiel #8
0
 public void AddPlayer(LobbyPlayer player)
 {
     player.transform.SetParent(playerListContentTransform, false);
 }
Beispiel #9
0
 public void RemovePlayer(LobbyPlayer player)
 {
     player.RemovePlayer();
 }