public static void OpenWindow() { if (ms_Instance == null) { var inst = ms_Instance = (MuscleClipConverterEditor)GetWindow(typeof(MuscleClipConverterEditor)); EditorApplication.playmodeStateChanged += inst.OnPlayModeChanged; } }
void OnDestroy() { ms_Instance = null; EditorApplication.playmodeStateChanged -= this.OnPlayModeChanged; }