Advertisement
otorp2

increment on timer node

Nov 12th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. extends Timer
  3.  
  4.  
  5. var count = 0
  6.  
  7. func _ready():
  8.  
  9. pass
  10.  
  11.  
  12.  
  13.  
  14. func _on_Timer_timeout():
  15. count += 1
  16. print(get_parent().add_one(1))
  17. print(count)
  18. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement