Angelscript/samples/tutorial/bin/script.as

12 lines
334 B
ActionScript
Raw Normal View History

2021-04-12 18:25:02 +00:00
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;
}