walkable is not a method
This commit is contained in:
parent
f3044b96be
commit
66296dd31a
1 changed files with 1 additions and 1 deletions
|
@ -51,6 +51,6 @@ public class Player : MonoBehaviour
|
||||||
else if (direction == "right") tile = map.GetTile(posX + 1, posY);
|
else if (direction == "right") tile = map.GetTile(posX + 1, posY);
|
||||||
else if (direction == "up") tile = map.GetTile(posX, posY + 1);
|
else if (direction == "up") tile = map.GetTile(posX, posY + 1);
|
||||||
else tile = map.GetTile(posX, posY - 1);
|
else tile = map.GetTile(posX, posY - 1);
|
||||||
return tile.walkable();
|
return tile.walkable;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue