コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Test method triggered by an inspector button
 /// </summary>
 protected virtual void FadeIn1Second()
 {
     FadeInEvent.Trigger(1f, new TweenType(Tween.TweenCurve.LinearTween));
 }