trybuild
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Simulator.Data {
|
||||
var z = (int)coordinates.GetInt("z");
|
||||
var entity=EntityManager.Instance.GetEntities(entityids,this);
|
||||
entity[0].transform.SetParent(cellComponents[(x, y, z)].Socket.transform);
|
||||
entity[0].transform.localPosition = new Vector3(0, 0, 0);
|
||||
entity[0].transform.localPosition = new Vector3(0, -0.25f, -0.25f);
|
||||
entitys.Add(entity[0].gameObject);
|
||||
}
|
||||
|
||||
@@ -45,8 +45,11 @@ namespace Simulator.Data {
|
||||
for(int x=0;x<layout.x; x++)
|
||||
{
|
||||
var cell = Instantiate(cellPrefab);
|
||||
cell.transform.localScale=new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
cell.transform.position = new Vector3(layout.x_length * x*0.55f, layout.y_length * y * 0.59f, layout.z_length * z * 0.75f);
|
||||
//cell.transform.localScale=new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
cell.transform.localScale=new Vector3(layout.x_length/0.55f, layout.y_length / 0.55f, layout.z_length / 0.55f);
|
||||
//cell.transform.position = new Vector3(layout.x_length * x*0.55f, layout.y_length * y * 0.59f, layout.z_length * z * 0.75f);
|
||||
//cell.transform.position = new Vector3(layout.x_length * x, layout.y_length * y*0.55f/0.59f, layout.z_length*z* 0.55f / 0.75f);
|
||||
cell.transform.position = new Vector3(layout.x_length * x, layout.y_length * y, layout.z_length*z);
|
||||
cell.transform.parent = this.transform;
|
||||
cellComponents.Add((x, y, z), cell.GetComponent<CellComponent>());
|
||||
cellComponents[(x, y, z)].x = x;
|
||||
@@ -58,13 +61,16 @@ namespace Simulator.Data {
|
||||
if (asrs)
|
||||
{
|
||||
var pickcell = Instantiate(cellPrefab);
|
||||
pickcell.transform.localScale = new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
pickcell.transform.position = new Vector3(layout.x_length * -0.55f, layout.y_length * 0, layout.z_length * 0);
|
||||
//pickcell.transform.localScale = new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
pickcell.transform.localScale = new Vector3(layout.x_length / 0.55f, layout.y_length / 0.55f, layout.z_length / 0.55f);
|
||||
//pickcell.transform.position = new Vector3(layout.x_length * -0.55f, layout.y_length * 0, layout.z_length * 0);
|
||||
pickcell.transform.position = new Vector3(layout.x_length*-1f, layout.y_length * 0, layout.z_length * 0);
|
||||
pickcell.transform.parent = this.transform;
|
||||
cellComponents.Add((-1, 0, 0), pickcell.GetComponent<CellComponent>());
|
||||
var dropcell = Instantiate(cellPrefab);
|
||||
dropcell.transform.localScale = new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
dropcell.transform.position = new Vector3(layout.x_length * (layout.x)*0.55f, layout.y_length * 0, layout.z_length * 0);
|
||||
//dropcell.transform.localScale = new Vector3(layout.x_length, layout.y_length, layout.z_length);
|
||||
dropcell.transform.localScale = new Vector3(layout.x_length / 0.55f, layout.y_length / 0.55f, layout.z_length / 0.55f);
|
||||
dropcell.transform.position = new Vector3(layout.x_length * (layout.x), layout.y_length * 0, layout.z_length * 0);
|
||||
dropcell.transform.parent = this.transform;
|
||||
cellComponents.Add(((int)(layout.x), 0, 0), dropcell.GetComponent<CellComponent>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user