private GamePiece GamePieceFromLevelLUT(Pack.Level.GP_LUT gpLU) { if (gpLU == Pack.Level.GP_LUT.CUBE_TB) { return(cubePrefabs[0]); } else if (gpLU == Pack.Level.GP_LUT.CUBE_EW) { return(cubePrefabs[1]); } else if (gpLU == Pack.Level.GP_LUT.CUBE_NS) { return(cubePrefabs[2]); } else if (gpLU == Pack.Level.GP_LUT.ROT_ANGLED_NE) { return(rotationAngledPrefabs[0]); } else if (gpLU == Pack.Level.GP_LUT.ROT_ANGLED_ES) { return(rotationAngledPrefabs[1]); } else if (gpLU == Pack.Level.GP_LUT.ROT_ANGLED_SW) { return(rotationAngledPrefabs[2]); } else if (gpLU == Pack.Level.GP_LUT.ROT_ANGLED_WN) { return(rotationAngledPrefabs[3]); } else if (gpLU == Pack.Level.GP_LUT.ROT_STRAIGHT_NS) { return(rotationStraightPrefabs[0]); } else if (gpLU == Pack.Level.GP_LUT.ROT_STRAIGHT_EW) { return(rotationStraightPrefabs[1]); } else if (gpLU == Pack.Level.GP_LUT.TOGGLE_OFF) { return(togglePrefabs[0]); } else if (gpLU == Pack.Level.GP_LUT.TOGGLE_ON) { return(togglePrefabs[1]); } else if (gpLU == Pack.Level.GP_LUT.START) { return(startPiecePrefab); } else if (gpLU == Pack.Level.GP_LUT.END) { return(endPiecePrefab); } else { return(nullPrefab); } }
public void SetGpLU(int x, int z, Pack.Level.GP_LUT gpLU) { editingLevel.pieceLU[x, z] = gpLU; PrintGpLU(editingLevel.pieceLU); }