Skip to content

Commit

Permalink
Item Defense Disappears
Browse files Browse the repository at this point in the history
Task #139
  • Loading branch information
jmekjean committed Nov 10, 2019
1 parent 57daaff commit c3e0839
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Wizard Hack/Assets/Scripts/PlayerHealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ void OnTriggerEnter2D(Collider2D col)
Destroy(col.gameObject);
addStrength();
}
else if(col.CompareTag("itemDefense"))
{
Destroy(col.gameObject);

}
}

public void addStrength()
Expand Down

0 comments on commit c3e0839

Please sign in to comment.