Angelscript/samples/tutorial/bin/script.as

12 lines
334 B
ActionScript

float calc(float a, float b)
{
// Print the value that we received
Print("Received: " + a + ", " + b + "\n");
// Print the current system time
Print("System has been running for " + GetSystemTime()/1000.0 + " seconds\n");
// Do the calculation and return the value to the application
return a * b;
}