using UnityEngine; using UnityEngine.UI; using System; public class UGUITool { /// /// 设置文本内容 /// /// 文本内容 /// public static Text SetText(PrefabBinder binder, string name, string textStr) { var text = binder.GetObj(name); if (null == text) { GameLogger.LogError("SetText Error, obj is null: " + name); return null; } text.text = textStr; return text; } /// /// 设置按钮点击回调 /// /// 点击回调 /// public static Button SetButton(PrefabBinder binder, string name, Action onClick) { var btn = binder.GetObj