public void SavePhoto(PlaceContent place, Texture2D tex) { int index = currentPlaceResult.results.FindIndex(x => x.place_id == place.GetID()); currentPlaceResult.results[index].savedPhoto = new SavedPhoto(); currentPlaceResult.results[index].savedPhoto.texture = tex; currentPlaceResult.results[index].savedPhoto.path = place.GetID(); }
public void SaveDetails(PlaceContent place, LocationDetails details) { int index = currentPlaceResult.results.FindIndex(x => x.place_id == place.GetID()); currentPlaceResult.results[index].details = details; }