Select the NavigationAgent3D node
Expand the Debug property
Open the hit_scan_weapon script
Update the shoot function
So that sparks are only created
If the raycast is colliding with something
At the moment when we pickup any ammo we display the updated amount on the label no matter which gun is in our hands - let's fix this
Open the weapon_handler script
Add a new function to get the type of ammo
The function returns the type of ammo
Open the ammo_handler script
Add an export var to access the weapon handler
Now assign this variable in the Inspector
Update the use ammo and add ammo functions
To update the ammo labelÂ
Based on the weapon which is equiped
Finally add some anti-aliasing to clean up edges
Click on Project -> Prject Settings
Note that Anti-Aliasing affects performance
CONGRATULATIONS ON COMPLETING THE TUTORIAL!