Exemple #1
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag == plyr)
     {
         if (healthbar)
         {
             healthbar.extraHealth(healAmount);
         }
         Destroy(gameObject);
     }
 }