mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
prevents FiniteStateMachineMonoHook singleton from being unloaded (#386)
This commit is contained in:
parent
994026fb7e
commit
fb471754bc
@ -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