示例#1
0
 private void OnEnable()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
示例#2
0
        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;
        }
示例#3
0
 private void OnDestroy()
 {
     // _onSceneGUI_ = null;
     instance = null;
 }
示例#4
0
 private void OnDisable()
 {
     instance = null;
     // _onSceneGUI_ = null;
     KP_material.ME_LIST = null;
 }