Ejemplo n.º 1
0
        public void AddPlayer(LobbyPlayer player)
        {
            _players.Add(player);

            player.transform.SetParent(playerListContentTransform, false);

            PlayerListModified();
        }
Ejemplo n.º 2
0
        public void AddPlayer(LobbyPlayer player)
        {
            _players.Add(player);

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

            PlayerListModified();
        }
Ejemplo n.º 3
0
        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");
            }
        }
Ejemplo n.º 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);
        }
    }
Ejemplo n.º 5
0
 public void RemovePlayer(LobbyPlayer player)
 {
     player.RemovePlayer();
 }
Ejemplo n.º 6
0
 public void RemovePlayer(LobbyPlayer player)
 {
     _players.Remove(player);
     PlayerListModified();
 }
Ejemplo n.º 7
0
        public void AddPlayer(LobbyPlayer player) {
			player.transform.SetParent (playerListContentTransform, false);
		}
Ejemplo n.º 8
0
 public void AddPlayer(LobbyPlayer player)
 {
     player.transform.SetParent(playerListContentTransform, false);
 }
Ejemplo n.º 9
0
 public void RemovePlayer(LobbyPlayer player)
 {
     player.RemovePlayer();
 }