Exemplo n.º 1
0
 public void AddLightToCurrentPosition()
 {
     ThreeDCell cell = new ThreeDCell ();
     cell.xCoordinate = Mathf.RoundToInt( fourDPlayerPosition.x );
     cell.yCoordinate = Mathf.RoundToInt(fourDPlayerPosition.y);
     cell.zCoordinate = Mathf.RoundToInt( fourDPlayerPosition.z );
     cell.content = "pointLight";
     world [Mathf.RoundToInt(fourDPlayerPosition.x), Mathf.RoundToInt(fourDPlayerPosition.y), Mathf.RoundToInt(fourDPlayerPosition.z), Mathf.RoundToInt(fourDPlayerPosition.w)] = cell;
 }
Exemplo n.º 2
0
 public void AddPalmTreeToCurrentPosition()
 {
     ThreeDCell cell = new ThreeDCell ();
     cell.xCoordinate = Mathf.RoundToInt( fourDPlayerPosition.x );
     cell.yCoordinate = Mathf.RoundToInt(fourDPlayerPosition.y);
     cell.zCoordinate = Mathf.RoundToInt( fourDPlayerPosition.z );
     cell.content = "ground_palmtree";
     world [Mathf.RoundToInt(fourDPlayerPosition.x), Mathf.RoundToInt(fourDPlayerPosition.y), Mathf.RoundToInt(fourDPlayerPosition.z), Mathf.RoundToInt(fourDPlayerPosition.w)] = cell;
 }
Exemplo n.º 3
0
 public void AddHalfCubeToCurrentPosition(string color)
 {
     ThreeDCell cell = new ThreeDCell ();
     cell.xCoordinate = Mathf.RoundToInt( fourDPlayerPosition.x );
     cell.yCoordinate = Mathf.RoundToInt(fourDPlayerPosition.y);
     cell.zCoordinate = Mathf.RoundToInt( fourDPlayerPosition.z );
     cell.content = "half"+color+"Cube";
     world [Mathf.RoundToInt(fourDPlayerPosition.x), Mathf.RoundToInt(fourDPlayerPosition.y), Mathf.RoundToInt(fourDPlayerPosition.z), Mathf.RoundToInt(fourDPlayerPosition.w)] = cell;
 }