// Use this for initialization void Start() { GameObject lro = new GameObject(); boundaryLine = lro.AddComponent <LineRenderer>(); boundaryLine.positionCount = 4; boundaryLine.SetWidth(3, 3); particleSystem = new SGPlaningParticleSystem(); siteProp = new SiteProperty(); pm3 = new PlaningMatrix3(ref siteProp); pm3.camera = calCamera; pm3.AddType("A", new Vector3(45, 100, 20), 1.2f); pm3.AddType("B", new Vector3(45, 60, 20), 1.6f); pm3.AddType("C", new Vector3(45, 9, 20), 1.8f); //pm3.AddType("A", 1200, 100, 30, 1.2f); //pm3.AddType("B", 1200, 50, 15, 1.5f); //pm3.AddType("C", 800, 40, 8,1.8f); pm3.genGrid(); UpdateSiteParam(); AssignSliderAction(sldSiteW); AssignSliderAction(sldSiteH); AssignSliderAction(sldSitePlotRatio); AssignSliderAction(sldSiteCoverage); //updateDesign(); }
public CreateBuilding(string inName, PlaningMatrix3 matrix = null, SGParticleSystem psys = null) : base(inName, new string[] { }) { this.matrix = matrix; this.psys = psys; Debug.Log("assigned matrix=" + matrix); }
public Recommendation(PlaningMatrix3 matrix) { this.matrix = matrix; }