mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Now FPS character controller demo with fixed shading
This commit is contained in:
23
Editor/resources/Scripts/entityScript.wren
Normal file
23
Editor/resources/Scripts/entityScript.wren
Normal file
@@ -0,0 +1,23 @@
|
||||
import "Scripts/Engine" for Engine
|
||||
import "Scripts/ScriptableEntity" for ScriptableEntity
|
||||
|
||||
|
||||
class TestScript is ScriptableEntity {
|
||||
construct new() {
|
||||
_deltaTime = 0
|
||||
}
|
||||
|
||||
init() {
|
||||
Engine.Log("Hello init")
|
||||
}
|
||||
|
||||
update(ts) {
|
||||
_deltaTime = _deltaTime + ts
|
||||
|
||||
|
||||
}
|
||||
|
||||
exit() {
|
||||
Engine.Log("Hello exit")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user