コード例 #1
0
    public override void OnStartClient()
    {
        base.OnStartClient();

        _lobbyPlayerGUI = Instantiate(lobbyPlayerGUIPrefab);
        _lobbyPlayerGUI.SetLobbyPlayer(this);
        _lobbyPlayerGUI.SetPlayerName(_playerName);
        _lobbyPlayerGUI.SetPlayerImageColor(_playerColor);

        FindObjectOfType <GameLobbyCanvas>().AddLobbyPlayer(_lobbyPlayerGUI);
    }
コード例 #2
0
 public void AddLobbyPlayer(LobbyPlayerGUI playerGUI)
 {
     playerGUI.transform.SetParent(entriesPanel, false);
 }