Advertisement
Munchy2007

screenfader6

May 25th, 2016
4,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public static void FadeOut(float delayBefore = 0, float delayAfter = 0, System.Action callback = null)
  2.     {
  3.         if (callback == null) callback = DefaultCallback;
  4.         group.gameObject.SetActive(true);
  5.         StopActiveFades();
  6.         fadeOutCR = instance.StartCoroutine(FadeOutCoRoutine(delayBefore, delayAfter,callback));
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement