diff options
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));  |