I am new to programing. I want to call a function from another script but not sure how to do it. I know how to call a variable from another script assuming I made that vairbale static.
I want to create a script that contains a reset function that will reset everything for my game.
I want to call this reset function from various other script that require my game to be reset.
The script that contains the reset function will not be attached to any object (assuming that is ok).
I am aware of a way to reload a level but I do want to do that using my own reset function. The answer to this question will organize my code greatly thank you very much in advance!!