Hey,
I have a question about function. So I know how to create a basic function and how to call it. Smth like this:
function Start()
{
myFunction();
}
function myFunction()
{
//do what ever I want
}
But I have seen a few times function where you can input a value like
function Start
{
myFunction(myValue,anotherValue);
}
So actually I wanted to ask how I have to set up my function so that I can input the value and how it will return the value to the previous function. I couldn’t find anything on in the Unity docs so I don’t really know where to look it up.