Example #1
0
    public ChunkLoader(GameObject parent)
    {
        this.parent = parent;
        this.chunk  = parent.AddComponent <Chunk>();
        this.chunk.gameObject.layer = LayerMask.NameToLayer("Chunk");
        tilesParent = GameObjectExtend.createGameObject("Tiles", parent.transform, Vector3.zero).transform;

        findOrCreateLinker();
    }