Exemple #1
0
    private GoogleSheetsForUnity.GoogleSheetAccess googleSheetsForUnity; // Access variables and scripts in GoogleSheetAccess.cs


    private void Start()
    {
        m_OriginalOffsetMinY = m_ScrollRect.gameObject.GetComponent <RectTransform>().offsetMin.y;

        m_ScrollRectTransform = m_ScrollRect.gameObject.GetComponent <RectTransform>();

        m_ScrollRect.gameObject.SetActive(false);           // By default, we don't need to show the scroll view.

        SpawnClickableOptions(m_Options);

        photoReview          = GetComponent <PhotoReview>();
        googleSheetsForUnity = GetComponent <GoogleSheetsForUnity.GoogleSheetAccess>();
    }
Exemple #2
0
    private void Start()
    {
        photoReview          = GetComponent <PhotoReview>();
        googleSheetsForUnity = GetComponent <GoogleSheetsForUnity.GoogleSheetAccess>();

        playButton.GetComponent <Button>().interactable = false;
        playButton.GetComponent <Button>().onClick.AddListener(PlayStopRecording);
        saveButton.onClick.AddListener(SaveAudioClip);
        saveButton.interactable = false;
        savedColorBlock         = playButton.GetComponent <Button>().colors;

        recordNewButton.onClick.AddListener(RecordNewAudio);
        haveNewRecordingToSave = false;

        recordNewButton.GetComponent <Animator>().SetBool("isActive", false);

        deleteButton.interactable = false;
        cancelUploadButton.onClick.AddListener(() => {
            _cancellationTokenSource.Cancel();
        });

        RARE.Instance.OutputVolume(0.6f); // TODO: Confirm setting is optimal (vs. 1.0f)
    }