예제 #1
0
    // Use this for initialization
    void Start()
    {
        ChunkHandler.ViewDistance = 15;

        ThreadHandler.InitThreads(threads);
        Debug.Log($"Initiated {threads} thread{((threads > 1) ? "s" : "")}");
        ThreadHandler.StartThreads();

        ThreadHandler.AllowWorkerThreadsToCollectWork = true;

        BlockCollection.CreateCollection();
        ShapeCollection.CreateCollection();

        ChunkHandler.DrawAllChunksWithinViewDistance();

        //TestEverything();
        //TestSettingAndGettingBlock(2, 2, 2, 1);
    }