From 3c5d537524d90993f54600bf78d043110d708b35 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sun, 28 Apr 2019 07:25:26 +0200 Subject: Added tutorial --- nGJ2019/Assets/Scripts/ObstacleSpawner.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'nGJ2019/Assets/Scripts/ObstacleSpawner.cs') diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs index 931a96b..bea85b2 100644 --- a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs +++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs @@ -56,6 +56,21 @@ public class ObstacleSpawner : MonoBehaviour timeline.Add(i * 12.5f + 15f, new Vector3(0, 0.5f, 3), ObstacleType.net); } } + else if (scene.name == "Tutorial") + { + for (int i = 0; i < 60; i++) + timeline.Add(i * 2.5f, new Vector3(0, 0, 0), ObstacleType.caveWalls); + + timeline.Add(10, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + timeline.Add(15, new Vector3(0, -2, 0), ObstacleType.rockBottom); + timeline.Add(20, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + timeline.Add(23, new Vector3(0, -2, 0), ObstacleType.rockBottom); + timeline.Add(26, new Vector3(0, 2.75f, 0), ObstacleType.rockTop); + + timeline.Add(40, new Vector3(0, 0, 0), ObstacleType.narrowPassage); + timeline.Add(48, new Vector3(0, -2.5f, 2), ObstacleType.rockJaws); + timeline.Add(56, new Vector3(0, 0.5f, 3), ObstacleType.net); + } else if (scene.name == "Level1") { for (int i = 0; i < 1000; i++) -- cgit v1.2.3