using System; using System.Collections; using System.Text.RegularExpressions; using UnityEngine; using UnityEngine.Events; using UnityEngine.EventSystems; using UnityEngine.UI; using ZXKFramework; namespace DongWuYiXue.DaoNiaoShu { public static class UIBehaviourExtension { public static void OnEventButtonEvent(this GameObject self, EventTriggerType type, UnityAction action) { EventTrigger.Entry entry = new EventTrigger.Entry { eventID = type }; var eventTrigger = self.GetComponent() ?? self.gameObject.AddComponent(); entry.callback.AddListener(action); eventTrigger.triggers.Add(entry); } } public class SpeakPanel : UIBase { public override string GroupName => "SpeakPanel"; public override string Name => "SpeakPanel"; Button tip; Button Send; string keyword;//正确的关键字 string answer;//答案 ItemInput userInput; GameObject inputContent; public Action sendAction; int hidetime; int showtime; bool hasTip; IUIManager uIManager; Coroutine coroutine; public override void Init(IUIManager uictrl) { base.Init(uictrl); uIManager = uictrl; tip = gameObject.FindFirst