/*public Structure() { thisData = new StructureData(); thisRenderer = new StructureRenderer(thisData, thisObject.GetComponent<MeshFilter>()); }*/ /*public bool BuildSide(RaycastHit hitA, RaycastHit hitB, int material, GameObject target) { Structure targetStructure = target.GetComponent<Structure>(); return targetStructure.BuildSide(hitA.point, hitB.point, material); }*/ public bool BuildWall(Vector3 pointA, Vector3 pointB, Vector3 pointC, Vector3 pointD, int material, bool doRender) { //Debug.Log("Wall from Structure"); thisData.CreateWall(pointA, pointB, pointC, pointD, material); if (doRender) { thisRenderer.SteppedRenderStructure(); thisObject.GetComponent<MeshCollider>().sharedMesh = thisObject.GetComponent<MeshFilter>().mesh; } return true; }