Exemplo n.º 1
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag == plyr)
     {
         if (healthbar)
         {
             healthbar.onTakeDamage(obstacleDmg);
         }
     }
 }