TO SQUASH: Fixed issues.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user