From 316c17c945b9133aa1094edf6de5c5f38e456d3c Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 27 Apr 2019 14:32:46 +0200 Subject: Added basic obstacles --- nGJ2019/Assets/Scripts/DragonMovement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nGJ2019/Assets/Scripts/DragonMovement.cs') diff --git a/nGJ2019/Assets/Scripts/DragonMovement.cs b/nGJ2019/Assets/Scripts/DragonMovement.cs index 4ba179d..9ae8fbb 100644 --- a/nGJ2019/Assets/Scripts/DragonMovement.cs +++ b/nGJ2019/Assets/Scripts/DragonMovement.cs @@ -205,7 +205,7 @@ public class DragonMovement : MonoBehaviour EnemyCollider enemy = other.gameObject.GetComponent(); if(enemy != null) { - Debug.Log(enemy.type == ObstacleType.alfa ? "alfa hit" : "beta hit"); + Debug.Log(enemy.type == ObstacleType.narrowPassage ? "alfa hit" : "beta hit"); healthBar.health--; } } -- cgit v1.2.3