I have a function with plays audio at a point. Now I use this a fair bit and copying and pasting it into each script is a waste.
How can I make it into a library type function that I can use at any time?
I have a function with plays audio at a point. Now I use this a fair bit and copying and pasting it into each script is a waste.
How can I make it into a library type function that I can use at any time?
You can do this by making the function a public static member function.