diff options
Diffstat (limited to 'nGJ2019')
| -rw-r--r-- | nGJ2019/Assets/Scripts/EventTimeline.cs | 2 | ||||
| -rw-r--r-- | nGJ2019/Assets/Scripts/ObstacleSpawner.cs | 48 |
2 files changed, 49 insertions, 1 deletions
diff --git a/nGJ2019/Assets/Scripts/EventTimeline.cs b/nGJ2019/Assets/Scripts/EventTimeline.cs index c6f2c24..1aef359 100644 --- a/nGJ2019/Assets/Scripts/EventTimeline.cs +++ b/nGJ2019/Assets/Scripts/EventTimeline.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; public class EventTimeline { - public enum SpawnEventType {wall, enemy}; + public enum SpawnEventType {alfa, beta}; public class SpawnEvent { diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs new file mode 100644 index 0000000..d007513 --- /dev/null +++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs @@ -0,0 +1,48 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ObstacleSpawner : MonoBehaviour +{ + private EventTimeline timeline = new EventTimeline(); + + public GameObject alfaPrefab; + public GameObject betaPrefab; + + public float spawnLine; |