Ejemplo n.º 1
0
    public GameObject CreateMarkerGameObject(Tile.AnchorPoint anchorPoint, Texture mainTexture, int renderQueue, Vector3 localScale)
    {
        go = Tile.CreateTileTemplate(anchorPoint).gameObject;
        go.renderer.material.mainTexture = mainTexture;
        go.renderer.material.renderQueue = renderQueue;
        go.transform.localScale          = localScale;
        GameObject markerGO = Instantiate(go) as GameObject;

        return(markerGO);
    }
    private GameObject CreateMarkerGameObject(Tile.AnchorPoint anchorPoint, Texture mainTexture, int renderQueue, Vector3 localScale)
    {
        GameObject go = Tile.CreateTileTemplate(anchorPoint).gameObject;

        go.renderer.material.mainTexture = mainTexture;
        go.renderer.material.renderQueue = renderQueue;
        go.transform.localScale          = localScale;
        go.tag  = "Pin";
        go.name = "Pin" + this.Count;
        this.Count++;
        return(go);
    }