Esempio n. 1
0
        // Use this for initialization
        private void Start()
        {
            WWResourceController.LoadResource("white", null, "whiteCube");
            WWResourceController.LoadResource("tree", null, "treeProp");

            var imagePath = "Heightmaps/MazeHeightmap";
            var heightmap = Resources.Load <Texture2D>(imagePath);

            List <Coordinate> terrainCoordinates = TerrainGenerator.CreateTerrainFromImage(heightmap);
        }
 public static void Setup()
 {
     WWResourceController.LoadResource("white", null, "whiteCube");
     WWResourceController.LoadResource("tree", null, "treeProp");
 }