Example #1
0
    void ShowQuickButton(GUIType type)
    {
        string temp  = type.ToString();
        int    index = -1;

        for (int i = 0, count = buttonType.Length; i < count; i++)
        {
            if (buttonType[i] == temp)
            {
                index = i;
                tipGos[i].SetActive(true);
            }
            else
            {
                tipGos[i].SetActive(false);
            }
        }
        if (index >= 0 && buttonType.Length > index)
        {
            UIEventListener.Get(btnOpenWnds[index].gameObject).onClick = (x) =>
            {
                GameCenter.uIMng.SwitchToUI(type);
                this.CloseUI();
            };
        }
    }
 public override string ToString()
 {
     return(Type.ToString());
 }