initial commit
This commit is contained in:
11
samples/tutorial/bin/script.as
Normal file
11
samples/tutorial/bin/script.as
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user