aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2019-04-28 09:30:42 +0200
committermarcinzelent <zelent.marcin@gmail.com>2019-04-28 09:30:42 +0200
commitbbd0b44cbbacae2eb2798ff9ffd087b6eee5352c (patch)
tree3294e6edfb715a86d7967fd3e478fdeaaac1eddd /nGJ2019/Assets/Scripts/TutorialTimer.cs
parent85441632d65425bdcaa76097e44e1f6f1f3bae7f (diff)
Added redirection from tutorial to level 1
Diffstat (limited to 'nGJ2019/Assets/Scripts/TutorialTimer.cs')
-rw-r--r--nGJ2019/Assets/Scripts/TutorialTimer.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/nGJ2019/Assets/Scripts/TutorialTimer.cs b/nGJ2019/Assets/Scripts/TutorialTimer.cs
new file mode 100644
index 0000000..899d45e
--- /dev/null
+++ b/nGJ2019/Assets/Scripts/TutorialTimer.cs
@@ -0,0 +1,25 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.SceneManagement;
+
+public class TutorialTimer : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+ StartCoroutine("Timer");
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+
+ IEnumerator Timer()
+ {
+ yield return new WaitForSeconds(70);
+ SceneManager.LoadScene("Level1");
+ }
+}