Beispiel #1
0
    public void BuildTree()
    {
        root = new Quadrant(maxSize, minSize, position);
        switch (loadType)
        {
        case TerrainLoadType.NONE:
            break;

        case TerrainLoadType.LOAD:
            LoadTerrain();
            break;

        case TerrainLoadType.GENERATE:
            StartCoroutine(Threaded.RunOnThread(CreateTerrainData, DrawTerrain));
            break;
        }
    }