예제 #1
0
파일: FadeUI.cs 프로젝트: amzeratul/ggj16
 private IEnumerator DoCrossFade(float time, OnHalfwayThroughCrossfade callback) {
     FadeOut(time * 0.45f);
     yield return new WaitForSeconds(time * 0.5f);
     if (callback != null) {
         callback();
     }
     yield return new WaitForSeconds(time * 0.05f);
     FadeIn(time * 0.45f);
 }
예제 #2
0
파일: FadeUI.cs 프로젝트: amzeratul/ggj16
 public void CrossFade(float time, OnHalfwayThroughCrossfade callback = null) {
     StartCoroutine(DoCrossFade(time, callback));
 }