prevents FiniteStateMachineMonoHook singleton from being unloaded (#386)

This commit is contained in:
Soraphis 2023-07-18 22:48:06 +02:00 committed by GitHub
parent 994026fb7e
commit fb471754bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ namespace UnityAtoms.FSM
{
GameObject go = new GameObject("FiniteStateMachineUpdateHook");
_instance = go.AddComponent<FiniteStateMachineMonoHook>();
DontDestroyOnLoad(go);
}
return _instance;