This commit is contained in:
YangHua 2024-09-03 18:32:30 +08:00
parent c4d6ab745f
commit 9bf48dbacd
1 changed files with 2 additions and 0 deletions

View File

@ -105,9 +105,11 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
private void OnDestroy()
{
firstPersonController.zoomAction -= OnZoom;
GameManager.EventMgr.RemoveEventListener<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, SetSpawnToolInfo);
}
private void OnDisable()
{
firstPersonController.zoomAction -= OnZoom;
GameManager.EventMgr.RemoveEventListener<GameObject>(Enum_EventType.TakeOutAndRetrievingTheTools, SetSpawnToolInfo);
}
}