private void OnEnable() { if (instance == null) { instance = this; } }
public static kPoly2Tool Init() { instance = (kPoly2Tool)EditorWindow.GetWindow(typeof(kPoly2Tool), false, "Tools2"); instance.Show(); // instance.OnEnable(); instance.position = new Rect(200, 100, 250, 420); instance.minSize = new Vector2(200, 300); instance.maxSize = new Vector2(1200, 900); return instance; }
private void OnDestroy() { // _onSceneGUI_ = null; instance = null; }
private void OnDisable() { instance = null; // _onSceneGUI_ = null; KP_material.ME_LIST = null; }