/// <summary> /// When catching an MMFadeInEvent, we fade our image in /// </summary> /// <param name="fadeEvent">Fade event.</param> public virtual void OnEvent(FadeInEvent fadeEvent) { StartFading(InactiveAlpha, ActiveAlpha, fadeEvent.Duration, fadeEvent.Curve, fadeEvent.ID, fadeEvent.IgnoreTimeScale); }
/// <summary> /// Test method triggered by an inspector button /// </summary> protected virtual void FadeIn1Second() { FadeInEvent.Trigger(1f, new TweenType(Tween.TweenCurve.LinearTween)); }