public void Restart() { audioSrc.Stop(); clipRecording = new ClipRecording(); waveform.SetClipRecording(clipRecording); waveform.ClearWaveform(); timer = 0; }
public void Restart() { audio.Stop(); recorded = false; playedBackwards = false; clipRecording = new ClipRecording(); waveform.SetClipRecording(clipRecording); waveform.gameObject.SetActive(true); waveform.ClearWaveform(); //waveform.gameObject.SetActive(false); repeatPhraseText.gameObject.SetActive(true); playTimer = 0; }