Пример #1
0
 public void ShowMessage(DialogShowMessageSettings settings, Action onNext)
 {
     if (CurrentProvider == null)
     {
         throw new NullReferenceException("有効なDialogPlayerがありません。");
     }
     CurrentProvider.ShowMessage(settings, onNext);
 }
Пример #2
0
 public virtual void CloneFrom(DialogShowMessageSettings source)
 {
     speakerInfo   = source.speakerInfo;
     SpeakerInfo   = source.SpeakerInfo;
     Face          = source.Face;
     Message       = source.Message;
     AllowSpeedUp  = source.AllowSpeedUp;
     AllowSkipping = source.AllowSkipping;
 }
Пример #3
0
 public sealed override void ShowMessage(DialogShowMessageSettings settings, Action onNext)
 {
     if (settings is TMessage s)
     {
         ShowMessage(s, onNext);
     }
     else
     {
         Debug.LogWarning($"このDialogProviderは{nameof(TMessage)}に対応していないため、いくつかのパラメータは無視されます。");
         s = new TMessage();
         s.CloneFrom(settings);
         ShowMessage(s, onNext);
     }
 }
Пример #4
0
 public abstract void ShowMessage(DialogShowMessageSettings settings, Action onNext);
Пример #5
0
 public override void ShowMessage(DialogShowMessageSettings settings, Action onNext)
 {
     messageWindow.Show(settings, onNext);
 }