diff --git a/Packages/FSM/Runtime/FiniteStateMachine/FiniteStateMachineMonoHook.cs b/Packages/FSM/Runtime/FiniteStateMachine/FiniteStateMachineMonoHook.cs index 09ba6f1f..467b184d 100644 --- a/Packages/FSM/Runtime/FiniteStateMachine/FiniteStateMachineMonoHook.cs +++ b/Packages/FSM/Runtime/FiniteStateMachine/FiniteStateMachineMonoHook.cs @@ -14,6 +14,7 @@ namespace UnityAtoms.FSM { GameObject go = new GameObject("FiniteStateMachineUpdateHook"); _instance = go.AddComponent(); + DontDestroyOnLoad(go); } return _instance;