static void StateChange(PlayModeStateChange change) { if (change == PlayModeStateChange.ExitingEditMode || change == PlayModeStateChange.ExitingPlayMode) { InjectionSystem.Reset(); } }