daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jul 17th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   string caseSwitch = scene.name;
  2.  
  3.  
  4.         switch(caseSwitch)
  5.         {
  6.             case "lvl2":
  7.                 SceneManager.LoadScene("lvl3");
  8.                 break;
  9.             case "lvl3":
  10.                 SceneManager.LoadScene("lvl1");
  11.             default:
  12.                 Debug.Log("finished");
  13.                 break;
  14.  
  15.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top