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