Exemplo n.º 1
0
    public void AddBtnOnClickListener(string widgetName, UnityAction action)
    {
        UIWidget tmp = GetUIWidget(widgetName);

        if (tmp != null)
        {
            tmp.AddBtnClickListener(action);
        }
    }
Exemplo n.º 2
0
    public void AddBtnOnClickListener(string subName, string widgetName, UnityAction action)
    {
        UIWidget tmp = GetSubManager(subName).GetWidget(widgetName).GetComponent <UIWidget>();

        if (tmp != null)
        {
            tmp.AddBtnClickListener(action);
        }
    }