fix: concat on LevelEditor.cs

This commit is contained in:
Vincent PETT 2025-04-01 08:55:40 +02:00
parent fb89b825e1
commit e0b7ec84fd
2 changed files with 207 additions and 755 deletions

File diff suppressed because it is too large Load Diff

View File

@ -192,7 +192,7 @@ public class LevelEditor : MonoBehaviour
Vector2 localClick = mousePos - (Vector2)resizingTarget.transform.position;
float ratio = resizingTarget.GetComponent<Collider2D>().bounds.size.x /
resizingTarget.GetComponent<Collider2D>().bounds.size.y;
resizingTarget.GetComponent<Collider2D>().bounds.size.y;
currentResizeAxis = Mathf.Abs(localClick.x) > Mathf.Abs(localClick.y * ratio)
? ResizeAxis.Horizontal