Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def update(delta_in_milliseconds)
  2. @time_since_last_update += delta_in_milliseconds
  3. if @time_since_last_update > @update_delay
  4. @time_since_last_update -= @update_delay
  5. notify :update
  6. end
  7. end
Add Comment
Please, Sign In to add comment