Skip to content

Commit ff2217f

Browse files
committed
Ignore collision while placing bombs
1 parent 49b4dd3 commit ff2217f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/Scripts/BombController.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,11 @@ public void AddBomb()
9898
bombsRemaining++;
9999
}
100100

101+
private void OnTriggerExit2D(Collider2D other)
102+
{
103+
if (other.gameObject.layer == LayerMask.NameToLayer("Bomb")) {
104+
other.isTrigger = false;
105+
}
106+
}
107+
101108
}

0 commit comments

Comments
 (0)