Exemplo n.º 1
0
    public GameObject Create(string name, Surface surface, Vector2 uv = new Vector2())
    {
        var obj = Prefabs.Create(name);

        obj.transform.parent = gameObject.transform.parent;

        var block = obj.GetComponent <BlockComponent> ();

        SetSurface(obj, block, surface, uv);

        return(obj);
    }