Is there a difference between Function and Method? How to pass Parameters inside of it?

Nope, same thing, just different based on if you’re using C# or not. To create a method/function, you have to declare and determine if it’s private or public.

To initialize the method, use the function name with parentheses and it is based on script execution order.

We can use these functions as a clean way to code. So, for a player, we can use these functions to handle all of the elements vs running it in one long script.

We can also apply parameters into these functions. If we had the function sum, we can pass in parameters. We need to identify the type of variable and give it a name. Then we can pass the value into a function.