mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
prevents FiniteStateMachineMonoHook singleton from being unloaded
This commit is contained in:
parent
994026fb7e
commit
da7b4ea409
@ -14,6 +14,7 @@ namespace UnityAtoms.FSM
|
||||
{
|
||||
GameObject go = new GameObject("FiniteStateMachineUpdateHook");
|
||||
_instance = go.AddComponent<FiniteStateMachineMonoHook>();
|
||||
DontDestroyOnLoad(go);
|
||||
}
|
||||
|
||||
return _instance;
|
||||
|
Loading…
Reference in New Issue
Block a user