I have a 3rd person character with assault rifle and projectiles which appears to be operating properly. I created a cube as a test target and added the Health script to it. Added a box collider and dragged the collider into the Hitboxes property in the Health Script inspector.
I put a breakpoint just inside OnDamage, but it never is trapped when the projectile pierces the collider.
Any suggestions as to what to look for.
I put a breakpoint just inside OnDamage, but it never is trapped when the projectile pierces the collider.
Any suggestions as to what to look for.