Question by
legon2007 · Mar 12 at 11:40 PM ·
scripting problempublic variablegun script
Attaching one variable to another one by inspector
I would like to know if there is some way to choose a variable from other script in the inspector like with a game object. The thing is that i have a script that I use for many guns changing the stats in the inspector and another one which manages the different types of ammunition, but I don't know how to select the ammo external variable, which is held in the manager script, from the inspector.
problem.png
(24.7 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613054123im_/https://answers.unity.com/themes/thub/images/avi.jpg)