Alpha commit
This commit is contained in:
@ -9,12 +9,20 @@ public class ChangeScene : MonoBehaviour
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
StartCoroutine(ChangeSceneToGame());
|
||||
if(SceneManager.GetActiveScene().buildIndex == 1)
|
||||
{
|
||||
StartCoroutine(ChangeSceneToGame(2));
|
||||
}
|
||||
|
||||
if(SceneManager.GetActiveScene().buildIndex == 3)
|
||||
{
|
||||
StartCoroutine(ChangeSceneToGame(0));
|
||||
}
|
||||
}
|
||||
|
||||
private IEnumerator ChangeSceneToGame()
|
||||
private IEnumerator ChangeSceneToGame(int index)
|
||||
{
|
||||
yield return new WaitForSeconds(5);
|
||||
SceneManager.LoadScene(2);
|
||||
SceneManager.LoadScene(index);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user