Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Awake()
 {
     _lobbyName     = transform.Find("LobbyName").GetComponent <Text>();
     _lobbyPlayers  = transform.Find("LobbyPlayers").GetComponent <Text>();
     _lobbyMap      = transform.Find("LobbyMap").GetComponent <Text>();
     _parentContent = gameObject.transform.parent.GetComponent <LobbyListContent>();
 }
Ejemplo n.º 2
0
    void Start()
    {
        _joinMenuButton = transform.Find("Container/TopPanel/Join").gameObject.GetComponent <Button>();
        _hostMenuButton = transform.Find("Container/TopPanel/Host").gameObject.GetComponent <Button>();

        _selectedMenuItemColors               = _joinMenuButton.colors;
        _selectedMenuItemColors.normalColor   = _selectedColor;
        _unselectedMenuItemColors             = _joinMenuButton.colors;
        _unselectedMenuItemColors.normalColor = _unselectedColor;

        _bottomPanel = transform.Find("Container/BottomPanel").gameObject;
        _lobbyPanel  = transform.Find("Container/BottomPanel/LobbyUiGroup").gameObject;
        _joinPanel   = transform.Find("Container/BottomPanel/JoinUiGroup").gameObject;
        _hostPanel   = transform.Find("Container/BottomPanel/HostUiGroup").gameObject;
        _lobbyList   = _joinPanel.transform.Find("JoinPanel/JoinScrollList/JoinListViewPort/JoinListContent").GetComponent <LobbyListContent>();
        SwitchToJoin();
    }