miepzerino
2025-04-03 a34c1ebe91bdf70510fac0b388b00b3c05a82c55
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;
        }