Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LaunchingGame()
- {
- GUI.Box(new Rect(Screen.width / 4 + 180, Screen.height / 2 - 30, 280, 50), "");
- if (Application.CanStreamedLevelBeLoaded((levelToLoad)))
- {
- GUI.Label(new Rect(Screen.width / 4 + 200, Screen.height / 2 - 25, 285, 150), "Loaded, starting the game!");
- Application.LoadLevel((levelToLoad));
- }
- else
- {
- GUI.Label(new Rect(Screen.width / 4 + 200, Screen.height / 2 - 25, 285, 150), "Starting..Loading the game: " + Mathf.Floor(Application.GetStreamProgressForLevel((levelToLoad)) * 100) + " %");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement