I've 2 object: a Player and a Bonus object.
In both script I've "OnTriggerEnter" script.
In Player OnTrigger I: Take Bonus value and add it to my Player (health, point, ammo)
In Bonus OnTrigger I: Play audio (when take it), Play Particle System and so on...
But, it seems it's called only Player's OnTriggerEnter ... Why ?
In Unity, if I have OnCollision/OnTrigger enter in both object, which event is called ? Both ?
Thanks
OnCollisionEnter
orOnTriggerEnter
will be executed whenRigidbody
is attached to that object. \$\endgroup\$