namespace Febucci.UI.Core { /// /// Base class for all appearance effects.
/// Inherit from this class if you want to create your own Appearance Effect in C#. ///
public abstract class AppearanceBase : EffectsBase { public float effectDuration = .3f; [System.Obsolete("This variable will be removed from next versions. Please use 'effectDuration' instead")] protected float showDuration => effectDuration; /// /// Initializes the effect's default values. It is called before the effect is applied to letters. /// /// /// Use this to assign values to your effect. /// /// /// /// effectDuration = data.defaults.sizeDuration; /// amplitude = data.defaults.sizeAmplitude; /// /// /// public abstract void SetDefaultValues(AppearanceDefaultValues data); public virtual bool CanShowAppearanceOn(float timePassed) { return timePassed <= effectDuration; } } }