Hi I have a simple question. Are there any benefits to writing a function for an action and then updating that function as opposed to writing things in Update(). Does anything change? Do functions maybe get called last? Example:
Update()
{
if(Input.GetKey("s"))
{
crouch;
}
}
as opposed to:
Update()
{
function Crouch();
}
function Crouch()
{
if (Input.GetKey("s"))
{
crouch;
}
}