aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nGJ2019/Assets/Scripts/ObstacleSpawner.cs')
-rw-r--r--nGJ2019/Assets/Scripts/ObstacleSpawner.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
index 7be5b33..58c0ebb 100644
--- a/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
+++ b/nGJ2019/Assets/Scripts/ObstacleSpawner.cs
@@ -16,10 +16,10 @@ public class ObstacleSpawner : MonoBehaviour
{
GameObject prefab = null;
- if(e.type == EventTimeline.SpawnEventType.alfa)
+ if(e.type == ObstacleType.alfa)
prefab = alfaPrefab;
- if(e.type == EventTimeline.SpawnEventType.beta)
+ if(e.type == ObstacleType.beta)
prefab = betaPrefab;
var transformT = ((GameObject) Instantiate(prefab, new Vector3(spawnLine, e.height, 0), Quaternion.identity)).transform;