TO SQUASH: Fixed issues.

This commit is contained in:
2026-08-27 17:14:18 -04:00
parent 414ebc99ff
commit 5ea4a7f74b
7 changed files with 133 additions and 21 deletions
+8 -1
View File
@@ -76,6 +76,8 @@ public class Player : MonoBehaviour
public float multiplier = 1.0f;
public WorldFiller worldFiller;
private bool flipped = false;
private bool gameOver = false;
@@ -247,7 +249,12 @@ public class Player : MonoBehaviour
}
// Mouse input handling for firing lasers, magnets, or normal barriers.
if (Mouse.current.leftButton.wasPressedThisFrame && canFire && !exploding)
if (
Mouse.current.leftButton.wasPressedThisFrame &&
worldFiller.IsPositionInFreeArea(transform.position) &&
canFire &&
!exploding
)
{
if (laserActive)
{