Where would i make my function so i can use it later on. Does it matter? Should I do it when i declare my variables? All people I’ve seen do it at the bottom of their scripts. Where would i make a function?
Short answer: It doesn’t really matter.
For readability purposes, you should declare it so that you can easily read your program from top to bottom. So if function A uses function B, then B should be declared after A.
Another convention is that variables should be declared first, and then methods.
But it is all a matter of personal preferences. Take a look at this link:
Common C# Coding Conventions | Microsoft Learn
For some standard c# code conventions.