private static void CheckEditMode() { if (s_instance == null && !EditorApplication.isPlaying) { s_instance = new EditorDependencyInjector(); s_instance.Initialize(); } }
private static void OnPlayModeStateChanged(PlayModeStateChange state) { if (EditorApplication.isPlaying) { s_instance = null; } CheckEditMode(); }