Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. IEnumerator PlaySplashVideo()
  2.     {
  3.         Handheld.PlayFullScreenMovie("Video/Logo-1536x2048.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
  4.    
  5.         // This needs to be called to execute things after the video finishes playing
  6.         yield return new WaitForEndOfFrame();
  7.         yield return new WaitForEndOfFrame();
  8.         yield return new WaitForSeconds(0.5f); // This fixes the Signal 11 error for me.
  9.    
  10.         LoadLevel();
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement