UGUI button加监听方法、带参数与不带参数

public void AddButtonListener(UnityAction action)     {         if (action!=null)         {             Button btn = transform.GetComponent<Button>();             btn.onClick.AddListener(action);    
相关文章
相关标签/搜索