Example (Timer)
let _timer = 90; let _stateTimer = 0; App.onUpdate.Add(function(dt){ _stateTimer += dt; if(_stateTimer >= 1){ _stateTimer = 0; _timer -= 1; } if(_timer <= 0){ // time over then... } })
Last updated 1 year ago