void Start() { SpeakToMeForUnity.PrepareRecording(); recordButton = GetComponent <Button>(); recordButtonText = transform.FindChild("Text").GetComponent <Text>(); }
void Start() { SpeakToMeForUnity.PrepareRecording(); recordButton = GetComponent <Button>(); frame = transform.GetChild(0).gameObject.GetComponent <Image>(); frame.fillAmount = 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(); }
void AfterTapp() { SpeakToMeForUnity.RecordButtonTapped(); GetComponent <Image> ().sprite = micOff; }