1using System.Collections;
2using System.Collections.Generic;
10 internal int menuscene = 0;
11 internal int loadScene = 1;
16 while (SceneManager.GetActiveScene().buildIndex != menuscene)
21 SceneManager.LoadSceneAsync(loadScene);
23 while (SceneManager.GetActiveScene().buildIndex != loadScene)
28 yield
return new WaitForSeconds(0.5f);
32 yield
return new WaitForEndOfFrame();
35 yield
return new WaitForSeconds(5.5f);
39 var aus = gameObject.AddComponent<AudioSource>();
45 yield
return new WaitForEndOfFrame();