Example #1
0
    void UpdateGoogleSheet(int currentPhotoTemp) // places _uploadDropboxPath in the "audio_file_path" column;
    {
        string columnName = "audio_file_path";
        //int i = photoReview.currentPhoto;
        int i = currentPhotoTemp;

        googleSheetsForUnity.allPhotos[i].audio_file_path = _uploadDropboxPath;
        googleSheetsForUnity.UpdatePhotoInfo(i, columnName, _uploadDropboxPath); // Update the currentPhoto data in column "columnName"
        if (_uploadDropboxPath == "")
        {
            _uploadDropboxPath        = "DELETED";
            deleteButton.interactable = false;
            saveButton.interactable   = false;
        }
        else
        {
            deleteButton.interactable = true;
            saveButton.interactable   = false;
        }
        Debug.Log("Google Sheet audio-file_path set to " + _uploadDropboxPath);
    }