Exemplo n.º 1
0
 /*
  * Black fade.
  *
  * @param fadein      Set true to fade into black.
  * @param speed[opt]  The fade speed.
  */
 public static void BlackFade(bool fadein, float speed = FADE_TIME)
 {
     if (Inst.m_FadeCr != null)
     {
         Inst.StopCoroutine(Inst.m_FadeCr);
     }
     Inst.m_FadeCr = Inst.StartCoroutine(Inst.BlackFadeCr(fadein, speed));
 }