1 using System.Collections;
2 using System.Collections.Generic;
4 using UnityEngine.SceneManagement;
6 public class LevelEnd : MonoBehaviour
8 // Start is called before the first frame update
11 StartCoroutine(End());
16 yield return new WaitForSeconds(5f);
17 SceneManager.LoadScene(1);