BlueGit

blue-star ggj-2020

Files

ggj-2020 / Assets / GAME / Scripts / BackToGame.cs

BackToGame.cs

f93b9f9e History
BackToGame.cs 400 B Download Raw
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.SceneManagement;
5
6public class BackToGame : MonoBehaviour
7{
8 private float timer = 5;
9 private bool done = false;
10
11 void Update()
12 {
13 if(!done)
14 {
15 timer -= Time.deltaTime;
16
17 if (timer <= 0)
18 SceneManager.LoadScene(0);
19 }
20 }
21}