Ejemplo n.º 1
0
    private void SetRotateObject(Transform newObject)
    {
        if (newObject.gameObject.tag == "ARObject")
        {
            _activeObject = newObject;

            isPhoto = _activeObject.GetComponent <IsPhoto>();
        }
    }
Ejemplo n.º 2
0
    public void SetupOldPictureSLAM(Sprite photo)
    {
        foreach (Transform item in ArtworkPool)
        {
            Destroy(item.gameObject);
        }

        displayType = 1;

        if (POIManager.instance.SLAM_Prefab != null)
        {
            currentStreetPhoto = Instantiate(POIManager.instance.SLAM_Prefab, ArtworkPool);
            IsPhoto comp = currentStreetPhoto.GetComponent <IsPhoto>();
            comp.SetPictureData(photo);
        }
    }