diff options
author | marcinzelent <zelent.marcin@gmail.com> | 2019-04-27 12:20:18 +0200 |
---|---|---|
committer | marcinzelent <zelent.marcin@gmail.com> | 2019-04-27 12:20:18 +0200 |
commit | b91f71896693ec1525c2a31b42278e32ba901a06 (patch) | |
tree | 874e57cf6c3a5edf309c118d7787602a1a8b0f28 /nGJ2019/Assets/Scripts/EventTimeline.cs | |
parent | b1a279b551e2127ff9f530b205f2e1590ae51e9f (diff) | |
parent | 5b4381a1993c4a67facc2d5d55b1d5c94f284ca7 (diff) |
Merge
Diffstat (limited to 'nGJ2019/Assets/Scripts/EventTimeline.cs')
-rw-r--r-- | nGJ2019/Assets/Scripts/EventTimeline.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nGJ2019/Assets/Scripts/EventTimeline.cs b/nGJ2019/Assets/Scripts/EventTimeline.cs index 1aef359..21b0bdb 100644 --- a/nGJ2019/Assets/Scripts/EventTimeline.cs +++ b/nGJ2019/Assets/Scripts/EventTimeline.cs @@ -4,15 +4,13 @@ using System.Collections.Generic; public class EventTimeline { - public enum SpawnEventType {alfa, beta}; - - public class SpawnEvent + public class SpawnEvent { public float time; public float height; - public SpawnEventType type; + public ObstacleType type; - public SpawnEvent(float time, float height, SpawnEventType type) + public SpawnEvent(float time, float height, ObstacleType type) { this.time = time; this.height = height; @@ -31,7 +29,7 @@ public class EventTimeline currentTime = 0; } - public void Add(float time, float height, SpawnEventType type) + public void Add(float time, float height, ObstacleType type) { futureEvents.Add(new SpawnEvent(time, height, type)); futureEvents.Sort((x,y) => x.time.CompareTo(y.time)); |