Beispiel #1
0
    public void StartUp(InfiniteGeneration ig, WorldScriptableObject worldObject, int regionResolution)
    {
        parent = ig.transform;
        worldScriptableObject = worldObject;
        worldPath             = worldScriptableObject.pathName;
        halfRes = regionResolution / 2;

        worldManager = FindObjectOfType <WorldManager>();
    }
Beispiel #2
0
    private void Awake()
    {
        voxelEditor          = FindObjectOfType <VoxelEditor>();
        infiniteGeneration   = FindObjectOfType <InfiniteGeneration>();
        worldManager         = FindObjectOfType <WorldManager>();
        chunkSaveLoadManager = FindObjectOfType <ChunkSaveLoadManager>();
        player = FindObjectOfType <PlayerController>().transform;
        BlockCollection blockList = BlockManager.ReadBlocks();

        chunkResolution = 16;

        recycleableChunks = new Queue <VoxelChunk>();

        worldScriptableObject.pathName = worldManager.worldPath + "/" + worldManager.worldName;
        worldScriptableObject.seed     = worldManager.seed;

        FreshGeneration();
    }