|
Java Code - Function
[Back]
Code:
//Function
var testobj : GameObject; //object that you will call a function on.
testobj.SendMessage("calltest"); //This is what call the function. The function name is calltest.
//This code is the function you are calling, by calling it you will make it do everything in the function.
//the function name is calltest
function calltest() {
}
var testobj : GameObject; //object that you will call a function on.
testobj.SendMessage("calltest"); //This is what call the function. The function name is calltest.
//This code is the function you are calling, by calling it you will make it do everything in the function.
//the function name is calltest
function calltest() {
}