Beispiel #1
0
        public DialogLineInfo(DialogLine dialogLine, AssetProvider assetProvider)
        {
            if (dialogLine == null)
            {
                throw new ArgumentNullException(nameof(dialogLine));
            }
            if (assetProvider == null)
            {
                throw new ArgumentNullException(nameof(assetProvider));
            }

            DialogText      = dialogLine.dialogText;
            Yuri            = dialogLine.yuri;
            YuriDialogText  = dialogLine.yuriDialogText;
            StartExpression = dialogLine.startExpression;
            Expressions     = dialogLine.expressions;
            EndExpression   = dialogLine.endExpression;

            if (dialogLine.yuriAudioClip != null)
            {
                YuriAudioClipInfo = new AudioClipInfo(dialogLine.yuriAudioClip, assetProvider);
            }
            if (dialogLine.audioClip != null)
            {
                AudioClipInfo = new AudioClipInfo(dialogLine.audioClip, assetProvider);
            }
        }
        public AudioKlipInfo(AudioKlip audioKlip, AssetProvider assetProvider)
        {
            if (audioKlip == null)
            {
                throw new ArgumentNullException(nameof(audioKlip));
            }
            if (assetProvider == null)
            {
                throw new ArgumentNullException(nameof(assetProvider));
            }

            Volume = audioKlip.volume;
            if (audioKlip.clip != null)
            {
                AudioClipInfo = new AudioClipInfo(audioKlip.clip, assetProvider);
            }
        }
Beispiel #3
0
 public DialogLineInfo(string dialogText,
                       string yuriDialogText,
                       bool yuri,
                       AudioClipInfo yuriAudioClipInfo,
                       AudioClipInfo audioClipInfo,
                       DialogLineExpression startExpression,
                       DialogLineExpression endExpression,
                       List <DialogLineExpression> expressions)
 {
     DialogText        = dialogText;
     AudioClipInfo     = audioClipInfo;
     Yuri              = yuri;
     YuriDialogText    = yuriDialogText;
     YuriAudioClipInfo = yuriAudioClipInfo;
     StartExpression   = startExpression;
     Expressions       = expressions;
     EndExpression     = endExpression;
 }
 public AudioKlipInfo(AudioClipInfo audioClipInfo,
                      float volume)
 {
     AudioClipInfo = audioClipInfo;
     Volume        = volume;
 }