void OnDisable() { instance = null; if (AnimationPreviewer.instance != null) { AnimationPreviewer.instance.Close(); } }
void OnEnable() { minSize = new Vector2(400f, 300f); instance = this; }