举例说明:
myFunction=function(a,b)
return a+b
end
if (sim_call_type==sim_childscriptcall_initialization) then
end
if (sim_call_type==sim_childscriptcall_actuation) then
print(myFunction(1,2))
end
if (sim_call_type==sim_childscriptcall_sensing) then
end
if (sim_call_type==sim_childscriptcall_cleanup) then
end