using System; using Mono.Event; using UnityEngine; namespace UnityTest.ZXL { public class FireEvent : MonoBehaviour { public void Fire(string str) { if (!Enum.TryParse(str, out ConstDataType dataType)) { Debug.LogError("str转枚举失败"); } EventManager.Instance.FireNow(this, new ConstEventArgs(dataType)); } public void OpenTipsUI(string str) { } } }