In the Evac City tutorial, there are many “void ‘somthing’ ( )” calls. I believe this to be c#, but what do you think the equivalent would be in java?
void HandleAnimation ()
void FindAnimation ()
void ProcessAnimation ()
void FindInput ()
In the Evac City tutorial, there are many “void ‘somthing’ ( )” calls. I believe this to be c#, but what do you think the equivalent would be in java?
void HandleAnimation ()
void FindAnimation ()
void ProcessAnimation ()
void FindInput ()
The equivalent in Java would be exactly the same, but that’s not really relevant since Unity doesn’t use Java ![]()
The equivalent in JavaScript would omit the void keyword, and would use the function keyword, like so…
function HandleAnimation () { ... }
function FindAnimation () { ... }
function ProcessAnimation () { ... }
function FindInput () { ... }
The explicit equivalent to void in Javascript is void:
function FindInput () : void
You can generally leave that off, since if the function doesn’t return anything than it’s implicitly void anyway.
–Eric