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