Atlas-Launcher/external/angelscript/samples/tutorial/bin/script.as

11 lines
345 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;
}