Commit af4d49a5 authored by 16도재형's avatar 16도재형

괄호의 차이가 느껴지십니까

parent d0ed256b
...@@ -18,7 +18,7 @@ public class Player : MonoBehaviour { ...@@ -18,7 +18,7 @@ public class Player : MonoBehaviour {
// Update is called once per frame // Update is called once per frame
void Update () { void Update () {
tx = (int)(transform.position.x / 24f); tx = (int)(transform.position.x / 24f);
ty = (int)(transform.position.y-0.9f / 24f); ty = (int)((transform.position.y-0.9f) / 24f);
if ((ttx != tx || tty != ty) && MapManager.isRoomFalling != true) if ((ttx != tx || tty != ty) && MapManager.isRoomFalling != true)
{ {
MapManager.tempRoom = MapManager.mapGrid[tx, ty]; MapManager.tempRoom = MapManager.mapGrid[tx, ty];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment