orangy
update
function. Normally update function is like this:
fun update(dt: Float) {
…
}
and engine calls it with time passed value so you can update physics, etc. In this (normal) case you have to keep state machine manually in the actor’s instance.