void OnEnable()
        {
            so            = new SerializedObject(target);
            blockRectTool = (MiniblockRectangleTool)target;

            SetupReorderableList();
            return;
        }
예제 #2
0
        public void GenerateMiniblocks()
        {
            MiniblockRectangleTool miniblockRectangleTool = gameObject.GetComponent <MiniblockRectangleTool>();

            blockIdMap = (miniblockRectangleTool != null) ? miniblockRectangleTool.CreateGrid() : blockIdMap;

            GenerateMesh();
            return;
        }
        void OnEnable()
        {
            so = new SerializedObject(target);
              blockRectTool = (MiniblockRectangleTool)target;

              SetupReorderableList();
              return;
        }