]> git.lizzy.rs Git - SuperMouseAdventure.git/blob - 2DGame/Assets/Scripts/LevelEnd.cs
snail hiding v0.1
[SuperMouseAdventure.git] / 2DGame / Assets / Scripts / LevelEnd.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEngine.SceneManagement;
5
6 public class LevelEnd : MonoBehaviour
7 {
8     // Start is called before the first frame update
9     void Start()
10     {
11         StartCoroutine(End());
12     }
13
14     IEnumerator End()
15     {
16         yield return new WaitForSeconds(5f);
17         SceneManager.LoadScene(1);
18     }
19 }