using System; 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; Button Voice; ItemInput userInput; GameObject content; GameObject inputContent; GameObject MicrophoneImg; GameObject btnsContent; Action sendAction; string tipTxt; string stepName; int score; int id; bool clickTip; Coroutine coroutine; public override void Init(IUIManager uictrl) { base.Init(uictrl); tip = transform.FindFirst