Ejemplo n.º 1
0
        public static void start()
        {
            chunkObj = new GameObject();
            chunkObj.AddComponent <MeshFilter>();
            chunkObj.AddComponent <MeshRenderer>();
            chunkObj.AddComponent <MeshCollider>();

            for (int i = 0; i < requestArray.Length; i++)
            {
                requestArray[i] = new Queue <MeshRequest>();
            }
            for (int i = 0; i < generatorThreads.Length; i++)
            {
                generatorThreads[i] = new GeneratorThread();
            }
            fileThread = new FileThread();
        }
Ejemplo n.º 2
0
        public static void start()
        {
            chunkObj = new GameObject();
            chunkObj.AddComponent<MeshFilter>();
            chunkObj.AddComponent<MeshRenderer>();
            chunkObj.AddComponent<MeshCollider>();

            for (int i = 0; i < requestArray.Length; i++)
                requestArray[i] = new Queue<MeshRequest>();
            for (int i = 0; i < generatorThreads.Length; i++)
                generatorThreads[i] = new GeneratorThread();
            fileThread = new FileThread();
        }