示例#1
0
    public Block(Vector3Int position, float tileX = 12, float tileY = 3)
    {
        HasUV2        = false;
        UVSetter      = new UVSetter(12, 3);
        UVSetter2     = null;
        this.Position = position;

        var x = SetUVs.GetStandardMeshFilter();

        this.Mesh = new Mesh
        {
            vertices  = x.vertices,
            triangles = x.triangles,
            name      = this.Position.ToString()
        };
    }