Ammo & Health

To use a kit as pickup object place it into a scene and add the PickUp script.

In both cases, set the Image and Audio values – these are the image of the object in the inventory and the pickup sound.

In the Ammo type, write a name. Then, in the weapon script, write the same name, and these ammunitions will be added only to it. If you leave an empty name, they can be used for any weapon.

In-game tip

If you pick up the ammo, and there are not any weapons for it in the inventory, the ammo will be saved, and if you pick up the desired weapon, the ammo will be displayed.