Hi guys. I made a script that works for what I want. Its a simple script that when I press a button opens a door. There is some variables that are usefull to change the behaviour. Also, I want to have several doors and several buttons in my game.
I don't want to duplicate everytime the script cuz what If I change it somewhere? Its not gonna apply all the changes on all the models. Can I have a general script that is linked to several objects and if I modify my "generic" script, it is modified for all objects?
Thanks for your time guys, I started two days ago so I'm pretty bad at it.