Exemplo n.º 1
0
    public void Init(UISelectServer uss, ServerInfo info, ServerButtonImage buttonImage, bool isCache = false)
    {
        uiSelectServer = uss;
        serverInfo     = info;
        isCaheServer   = isCache;

        serverIdLabel.text   = serverInfo.id.ToString();
        serverNameLabel.text = string.Format("{0}({1})", serverInfo.name, buttonImage.buttonLabelTxt);
        bool isEnable = buttonImage.State != ServerState.Unavailable;

        if (isEnable)
        {
            imageButton.label.color = buttonImage.labelColor;
            cubeButton.label.color  = buttonImage.labelColor;
        }
        imageButton.isEnabled = isEnable;
        cubeButton.isEnabled  = isEnable;
    }
Exemplo n.º 2
0
 public UISelectServer()
 {
     instance = this;
 }
Exemplo n.º 3
0
 void Awake()
 {
     cloneSingle.gameObject.SetActive(false);
     UIEventListener.Get(closeButton.gameObject).onClick = OnCloseButtonClicked;
     _instance = this;
 }