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"); } }
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(); }
public void AddPlayer(LobbyPlayer player) { player.transform.SetParent (playerListContentTransform, false); }
public void AddPlayer(LobbyPlayer player) { player.transform.SetParent(playerListContentTransform, false); }