Beispiel #1
0
 public override void SetMessage(string message, float duration)
 {
     if (line != null)
     {
         line.SetFormattedText(FormattedText.Parse(message, DialogueManager.MasterDatabase.emphasisSettings));
         SetFadeDuration(line.gameObject, duration);
         if (panel != null)
         {
             SetFadeDuration(panel.gameObject, duration);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Sets the subtitle controls' contents.
 /// </summary>
 /// <param name="subtitle">Subtitle.</param>
 public override void SetSubtitle(Subtitle subtitle)
 {
     if (portraitImage != null)
     {
         portraitImage.image = subtitle.GetSpeakerPortrait();
     }
     if (portraitName != null)
     {
         portraitName.text = subtitle.speakerInfo.Name;
     }
     if (line != null)
     {
         line.SetFormattedText(subtitle.formattedText);
     }
 }