1
Fork 0

walkable is not a method

This commit is contained in:
Steffo 2019-04-27 14:52:24 +02:00
parent f3044b96be
commit 66296dd31a

View file

@ -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;
}
}