21 lines
429 B
ActionScript 3
21 lines
429 B
ActionScript 3
// Example scene script using a class instance.
|
|
class SceneScript {
|
|
float time = 0.0f;
|
|
|
|
void Init() {
|
|
Log(LOG_INFO, "SceneScript.Init (example)");
|
|
}
|
|
|
|
void Update(float dt) {
|
|
time += dt;
|
|
if (time > 1.0f) {
|
|
time = 0.0f;
|
|
Log(LOG_DEBUG, "SceneScript.Update tick");
|
|
}
|
|
}
|
|
|
|
void Shutdown() {
|
|
Log(LOG_INFO, "SceneScript.Shutdown (example)");
|
|
}
|
|
}
|