void Start()
    {
        SpeakToMeForUnity.PrepareRecording();

        recordButton     = GetComponent <Button>();
        recordButtonText = transform.FindChild("Text").GetComponent <Text>();
    }
Example #2
0
    void Start()
    {
        SpeakToMeForUnity.PrepareRecording();

        recordButton     = GetComponent <Button>();
        frame            = transform.GetChild(0).gameObject.GetComponent <Image>();
        frame.fillAmount = 0;
    }
Example #3
0
 public void OnTapped()
 {
     Debug.Log("push");
     SpeakToMeForUnity.RecordButtonTapped();
     GetComponent <Image> ().sprite = micOn;
     frame.fillAmount = 1;
     frame.DOFillAmount(0, 3f);
     Invoke("AfterTapp", 3f);
 }
 public void OnTapped()
 {
     SpeakToMeForUnity.RecordButtonTapped();
 }
Example #5
0
 void AfterTapp()
 {
     SpeakToMeForUnity.RecordButtonTapped();
     GetComponent <Image> ().sprite = micOff;
 }