Skip to content

Commit

Permalink
Fixed bug in bucket switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlechaos committed Mar 4, 2024
1 parent da41bfd commit 812ebac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/Scripts/Games/BucketSwitcherGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ private void ResetBottomCollider(PBEffector effector)
{
GameObject bottom = effector.transform.Find("Bottom").gameObject;

if (bottom == null)
return;

BoxCollider2D collider = bottom.GetComponent<BoxCollider2D>();
if (collider = null)
if (collider == null)
return;

if (effector.GetEffect().HasFlag(PBEffect.Add))
Expand Down

0 comments on commit 812ebac

Please sign in to comment.