示例#1
0
 IEnumerator setLevel(EnumLevel level, float time)
 {
     GetComponent<AudioSource>().Play();
     musicController.QuietDown(time);
     yield return new WaitForSeconds(time);
     SceneManager.LoadScene(level.GetName());
 }
示例#2
0
 public void ChangeScene(EnumLevel newLevel)
 {
     previousLoadedLevel = Statics.GetFromName(SceneManager.GetActiveScene().name);
     SceneManager.LoadScene(newLevel.GetName());
 }