protected void RecordTest(string wavPath) { manager.Do(new EventBase(manager.lowBeep.Play)); manager.Do(new EventBase <string>(manager.recorder.StartRecording, wavPath)); manager.Do(new EventBase <string, string, string>(manager.ShowText, "microphone test recording", "Recording...", "red")); DoIn(new EventBase(() => { manager.Do(new EventBase(() => { manager.ClearText(); manager.recorder.StopRecording(); Run(); })); }), (int)manager.GetSetting("micTestDuration")); }
void Update() { if (Input.GetKeyDown(KeyCode.Space) && !ui.inDialogue && currentVillager != null) { targetGroup.m_Targets[1].target = currentVillager.transform; ui.SetCharNameAndColor(); ui.inDialogue = true; ui.CameraChange(true); ui.ClearText(); ui.FadeUI(true, .2f, .65f); currentVillager.TurnToPlayer(transform.position); } }