Exemplo n.º 1
0
        protected override void SetWorld()
        {
            // Setup generators
            chunkGenerator = (ChunkGenerator)System.Activator.CreateInstance(generatorType);
            GeometryIndependentPass.SetWorld(this);

            GenerateTestStructure();
            //worldGeneratingCoroutine = StartCoroutine(WorldUpdateCoroutine());
        }
Exemplo n.º 2
0
        protected virtual void SetWorld()
        {
            // Do world sketch
            SketchWorld();

            if (isMainWorld)
            {
                GeometryIndependentPass.SetWorld(this);
            }

            // Setup generators
            chunkGenerator = (ChunkGenerator)System.Activator.CreateInstance(generatorType);

            for (int i = 0; i < 0; i++)
            //for (int i = 0; i < 64; i++)
            {
                Vector2Int pos = new Vector2Int(UnityEngine.Random.Range(-800, 800), UnityEngine.Random.Range(-800, 800));
                CreateStructure(new BoundsInt(pos.x, 5, pos.y, 96, 96, 96), new TestTree());
            }
            //CreateStructure(new BoundsInt(-122, 32, 225, 140, 120, 140), new TestTree());
            //CreateStructure(new BoundsInt(56, 10, 371, 140, 120, 140), new TestTree());
            //CreateStructure(new BoundsInt(143, 0, 177, 140, 120, 140), new TestTree());
        }