修改注册事件调用时间

This commit is contained in:
YangHua 2024-08-28 14:56:55 +08:00
parent 9e83a5e606
commit 88a543934d
1 changed files with 1 additions and 1 deletions

View File

@ -41,13 +41,13 @@ public class PermanentTriggerBase : MonoBehaviour
{
if (GetComponent<HighlightEffect>())
_highlight = GetComponent<HighlightEffect>();
GameManager.EventMgr.AddEventListener<string>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
}
/// <summary>
/// Start
/// </summary>
protected virtual void OnStart()
{
GameManager.EventMgr.AddEventListener<string>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
}
private void OnMouseEnter()
{