private void SetRotateObject(Transform newObject) { if (newObject.gameObject.tag == "ARObject") { _activeObject = newObject; isPhoto = _activeObject.GetComponent <IsPhoto>(); } }
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); } }