예제 #1
0
 /// <summary>
 /// Sets up all visual elements, fades from black at the start
 /// </summary>
 protected virtual void LoadingSetup()
 {
     MMFadeOutEvent.Trigger(StartFadeDuration);
     LoadingCompleteAnimation.alpha = 0;
     LoadingProgressBar.GetComponent <Image>().fillAmount = 0f;
     LoadingText.text = _loadingTextValue;
 }
예제 #2
0
 /// <summary>
 /// When catching an MMFadeOutEvent, we fade our image out
 /// </summary>
 /// <param name="fadeEvent">Fade event.</param>
 public virtual void OnMMEvent(MMFadeOutEvent fadeEvent)
 {
     _fading             = true;
     _fadeCounter        = 0f;
     _currentTargetAlpha = InactiveAlpha;
     _currentDuration    = DefaultDuration;
 }