public void onNotify(Notifications notification, List <object> data) { switch (notification) { case PLAYER_POS_CHANGED: Vector2Int new_pos = (Vector2Int)data[0]; if (TilemapManager.checkPlayerPosition(new_pos)) { notify(FREEZE_PLAYER_RB, null); reload(new_pos); notify(UNFREEZE_PLAYER_RB, null); } break; } }