From 66296dd31a853fff3e858d56f0a633ce04b6a353 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 27 Apr 2019 14:52:24 +0200 Subject: [PATCH] walkable is not a method --- Assets/Scripts/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Player.cs b/Assets/Scripts/Player.cs index 163ba18..1f2e98b 100644 --- a/Assets/Scripts/Player.cs +++ b/Assets/Scripts/Player.cs @@ -51,6 +51,6 @@ public class Player : MonoBehaviour else if (direction == "right") tile = map.GetTile(posX + 1, posY); else if (direction == "up") tile = map.GetTile(posX, posY + 1); else tile = map.GetTile(posX, posY - 1); - return tile.walkable(); + return tile.walkable; } }