what is the script for ammo boxes?

if any one can help me I need to now the script for an object that the player can walk up to and the ammo count will be rest to is original amount. Thank you to any one who can help.

1 Answer

1

Hi,
try to use the OnCollisionEnter(Collision co) Method in your Player Script and add tags and colliders to your ammo boxes

Regards,
BPR