public void BuildCastle3D() { Vector2 v2 = GameManager3D.Vector3ToXY(transform.position); info.x = (int)v2.x; info.y = (int)v2.y; mapBuilder.BuildCastle3D(info); BuildingInfo newInfo = new BuildingInfo(info.buildingCode, info.colorCode, info.x, info.y); MakeMapManager.inst.infoList.Add(newInfo); /* * if(this.bc2d != null) * { * BoxCollider2D bc2d = a.transform.GetComponent<BoxCollider2D>(); * bc2d.offset = this.bc2d.offset; * bc2d.size = this.bc2d.size; * } */ }