TextAnimatorContinueButtonFastForward.cs
Code: Select all
namespace PixelCrushers.DialogueSystem
{
/// <summary>
/// This is a subclass of StandardUIContinueButtonFastForward for Text Animator subtitles.
/// </summary>
public class TextAnimatorContinueButtonFastForward : StandardUIContinueButtonFastForward
{
public Febucci.UI.TextAnimatorPlayer textAnimatorPlayer;
public override void OnFastForward()
{
if (!textAnimatorPlayer.textAnimator.allLettersShown)
{
textAnimatorPlayer.SkipTypewriter();
}
else
{
base.OnFastForward();
}
}
}
}