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