Example #1
0
    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();
    }
Example #2
0
    public void SaveDetails(PlaceContent place, LocationDetails details)
    {
        int index = currentPlaceResult.results.FindIndex(x => x.place_id == place.GetID());

        currentPlaceResult.results[index].details = details;
    }