Question by
lorenzdistef · Sep 21, 2020 at 10:04 PM ·
arrayarraysvariables
How can I make a variable store more different scripts?
Hi everyone! I have a problem. In the variables I have "public Gun (name of the script) weapon;" but I need this variable to store other scripts that are not the Gun one, how can I do this? Can I use arrays in some way?
Comment
Your answer
Follow this Question
Related Questions
Why UNITY Hates Me By Reading Array's Length! 1 Answer
null array? 0 Answers
array index out of range 1 Answer
Index out of range error 1 Answer