コード例 #1
0
ファイル: Structure.cs プロジェクト: Philip-S-Martin/Reforge
 //build into bufferData
 public bool BuildSide(Vector3 pointA, Vector3 pointB, int material, bool doRender = true)
 {
     thisData.CreateSide(pointA, pointB, material);
     if (doRender)
     {
         thisRenderer.SteppedRenderStructure();
         thisObject.GetComponent<MeshCollider>().sharedMesh = thisObject.GetComponent<MeshFilter>().mesh;
     }
     return true;
 }