Example #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);
 }
Example #2
0
 /// <summary>
 /// Test method triggered by an inspector button
 /// </summary>
 protected virtual void FadeIn1Second()
 {
     FadeInEvent.Trigger(1f);
 }