Advertisement
LittleAngel

Untitled

Jul 7th, 2011
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. void LaunchingGame()
  2. {
  3. GUI.Box(new Rect(Screen.width / 4 + 180, Screen.height / 2 - 30, 280, 50), "");
  4. if (Application.CanStreamedLevelBeLoaded((levelToLoad)))
  5. {
  6. GUI.Label(new Rect(Screen.width / 4 + 200, Screen.height / 2 - 25, 285, 150), "Loaded, starting the game!");
  7. Application.LoadLevel((levelToLoad));
  8. }
  9. else
  10. {
  11. GUI.Label(new Rect(Screen.width / 4 + 200, Screen.height / 2 - 25, 285, 150), "Starting..Loading the game: " + Mathf.Floor(Application.GetStreamProgressForLevel((levelToLoad)) * 100) + " %");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement