Пример #1
0
 void Update()
 {
     if (fadedIn && Input.anyKeyDown)
     {
         if (fadeToWhite)
         {
             sf.FadeToWhite(fadeOutDuration, FadeOutComplete);
         }
         else
         {
             sf.FadeToBlack(fadeOutDuration, FadeOutComplete);
         }
     }
 }