예제 #1
0
 // Cube contructor
 public Cube(GameObject parent, PlanetChunk owner,
             int currentX, int currentY, int currentZ,
             Material material, int terrainType,
             Vector3 cubePosition, string chunkName)
 {
     cubeLocation      = cubePosition;
     this.parent       = parent;
     this.owner        = owner;
     cubePhysicalState = CubePhysicalState.SOLID; // default state
     cube          = new GameObject(chunkName + "_" + "Cube_" + Universe.BuildPlanetChunkName(cubeLocation));
     this.currentX = currentX;
     this.currentY = currentY;
     this.currentZ = currentZ;
 }
예제 #2
0
 public void SetPhysicalState(CubePhysicalState physicalState)
 {
     cubePhysicalState = physicalState;
 }