prevents FiniteStateMachineMonoHook singleton from being unloaded

This commit is contained in:
Soraphis 2023-01-29 21:11:00 +01:00 committed by GitHub
parent 994026fb7e
commit da7b4ea409
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;