LaboratoryProtection/Assets/UnityTest/ZXL/Scripts/FireEvent.cs

23 lines
485 B
C#
Raw Normal View History

2023-09-14 15:36:17 +08:00
using System;
using Mono.Event;
2023-09-13 15:04:19 +08:00
using UnityEngine;
namespace UnityTest.ZXL
{
public class FireEvent : MonoBehaviour
{
public void Fire(string str)
{
2023-09-14 15:36:17 +08:00
if (!Enum.TryParse(str, out ConstDataType dataType))
{
Debug.LogError("str转枚举失败");
}
EventManager.Instance.FireNow(this, new ConstEventArgs(dataType));
}
public void OpenTipsUI(string str)
{
2023-09-13 15:04:19 +08:00
}
}
}