示例#1
0
    public static void BindBtnFunc(Transform t, string path, UnityEngine.Events.UnityAction action)
    {
        Button btn = UtilHelper.Find <Button>(t, path);

        if (btn != null)
        {
            btn.onClick.AddListener(action);
        }
    }
示例#2
0
 public override void Init()
 {
     slider = UtilHelper.Find <Slider>(transform, "Slider");
 }
示例#3
0
 public override void Init()
 {
     fadeImage = UtilHelper.Find <Image>(transform, "Image");
 }