void OnEnable() { so = new SerializedObject(target); blockRectTool = (MiniblockRectangleTool)target; SetupReorderableList(); return; }
public void GenerateMiniblocks() { MiniblockRectangleTool miniblockRectangleTool = gameObject.GetComponent <MiniblockRectangleTool>(); blockIdMap = (miniblockRectangleTool != null) ? miniblockRectangleTool.CreateGrid() : blockIdMap; GenerateMesh(); return; }