예제 #1
0
        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);
        }
예제 #2
0
 public void Pan(Vector3 endPosition, AnimationCurve curve)
 {
     _panCor?.Stop();
     _panCor = CoroutineRunner.StartManagedCoroutine(PanCor(
                                                         _panningTransform.position,
                                                         endPosition,
                                                         curve,
                                                         curve.keys[curve.length - 1].time
                                                         ));
 }
예제 #3
0
 public void Shake(CameraShakeData shakeData)
 {
     _shakeCor?.Stop();
     _shakeCor = CoroutineRunner.StartManagedCoroutine(ShakeCor(shakeData));
 }