aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2019-04-27 12:20:18 +0200
committermarcinzelent <zelent.marcin@gmail.com>2019-04-27 12:20:18 +0200
commitb91f71896693ec1525c2a31b42278e32ba901a06 (patch)
tree874e57cf6c3a5edf309c118d7787602a1a8b0f28 /nGJ2019/Assets/Scripts/ObstacleSpawner.cs
parentb1a279b551e2127ff9f530b205f2e1590ae51e9f (diff)
parent5b4381a1993c4a67facc2d5d55b1d5c94f284ca7 (diff)
Merge
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;