Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. private void LoadArena()
  2.     {
  3.         StartCoroutine(LoadArena("FirstArena"));
  4.     }
  5.  
  6.     IEnumerator LoadArena(string arenaName)
  7.     {
  8.         int k = 0;
  9.         AsyncOperation op = SceneManager.LoadSceneAsync(arenaName, LoadSceneMode.Additive);
  10.        
  11.         print("Started Loading operation!");
  12.        
  13.         yield return new WaitUntil(op.isDone);
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement