修改注册事件调用时间
This commit is contained in:
parent
9e83a5e606
commit
88a543934d
|
|
@ -41,13 +41,13 @@ public class PermanentTriggerBase : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (GetComponent<HighlightEffect>())
|
if (GetComponent<HighlightEffect>())
|
||||||
_highlight = GetComponent<HighlightEffect>();
|
_highlight = GetComponent<HighlightEffect>();
|
||||||
|
GameManager.EventMgr.AddEventListener<string>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start
|
/// Start
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnStart()
|
protected virtual void OnStart()
|
||||||
{
|
{
|
||||||
GameManager.EventMgr.AddEventListener<string>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
|
|
||||||
}
|
}
|
||||||
private void OnMouseEnter()
|
private void OnMouseEnter()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue