Ejemplo n.º 1
0
 public IEnumerator FadeOut(bool instant)
 {
     if (instant)
     {
         toolsFader.SetAlpha(0);
     }
     else
     {
         yield return(StartCoroutine(TransitionManager.Instance.FadeContent(toolsFader.gameObject, TransitionManager.FadeType.FadeOut, FadeTransitionDuration, FadeOutTransitionCurve)));
     }
 }
Ejemplo n.º 2
0
        public IEnumerator FadeOut(bool instant)
        {
            while (showHideToolsInTransition)
            {
                yield return(null);
            }

            if (instant)
            {
                toolsFader.SetAlpha(0);
            }
            else
            {
                showHideToolsInTransition = true;
                yield return(StartCoroutine(TransitionManager.Instance.FadeContent(toolsFader.gameObject, TransitionManager.FadeType.FadeOut, FadeTransitionDuration, FadeOutTransitionCurve)));

                showHideToolsInTransition = false;
            }
        }