How do i put this in c# please
if (health <= 0){
(and Current level is "2"){
show a image while the next level is loading
Application.LoadLevel(1)
}
}
How do i put this in c# please
if (health <= 0){
(and Current level is "2"){
show a image while the next level is loading
Application.LoadLevel(1)
}
}
But you can Simply do Application.LoadLevel(“LoadingScreen”) and from there you Load other Levels. Just Make a GameManager Class and call in the Awake Methode DontDestroyOnLoad() so the GameObject Stays even if you change your Level!
Thank you got it working :), i am using this to call a prefab i made of a image and loading script, how do i make array to pick 1 randomly ? i made three with different images Thank you. { ImageOne,ImageTwo,ImageThree } if( hit.CompareTag("Player")){ GameObject go = (GameObject)Instantiate(Resources.Load("ImageThree")); }
– charles01