Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Test method triggered by an inspector button
 /// </summary>
 protected virtual void FadeOut1Second()
 {
     FadeOutEvent.Trigger(1f, new TweenType(Tween.TweenCurve.LinearTween));
 }