miepzerino
2025-04-03 f8d19ab1eb80e22e169cf4f9d7fe3e83f30d77bb
Assets/Scripts/Managers/GameManager.cs
@@ -144,7 +144,10 @@
                cellCoord.x = cellCoord.x + 1;
                break;
            case DrillDirection.Down:
                cellCoord.y = cellCoord.y - 1;
                // Use player's center position for downward drilling
                Vector3 playerCenter = contact.rigidbody.transform.position;
                cellCoord = grid.WorldToCell(playerCenter);
                cellCoord.y = grid.WorldToCell(contact.point).y - 1; // Keep the vertical position from contact point
                break;
        }