Esempio 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)));
     }
 }
Esempio 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;
            }
        }