public void DisplayFor(AudioSourceMgr mgr) { if (!Enabled) { return; } lastPlayed = mgr.audiosource; lastPlayedName = mgr.FileName; currentAudioTracker.Stop(); string soundName = Path.GetFileNameWithoutExtension(mgr.FileName); subtitleText.text = AUDIOCLIP_PREFIX + soundName; if (subtitleText.text == soundName) { lastWasTranslated = false; if (!showUntranslatedText) { subtitleText.text = string.Empty; } Logger.DumpVoice(soundName, mgr.audiosource.clip, CurrentLevel); } else { lastWasTranslated = true; } TrackAudio(mgr.audiosource); }
public void Pan(Vector3 endPosition, AnimationCurve curve) { _panCor?.Stop(); _panCor = CoroutineRunner.StartManagedCoroutine(PanCor( _panningTransform.position, endPosition, curve, curve.keys[curve.length - 1].time )); }
public void Shake(CameraShakeData shakeData) { _shakeCor?.Stop(); _shakeCor = CoroutineRunner.StartManagedCoroutine(ShakeCor(shakeData)); }