Advertisement
otorp2

pass/return value parameter

Nov 13th, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. extends Node2D
  2.  
  3.  
  4.  
  5. func _ready():
  6.  
  7.  
  8. pass
  9.  
  10. func add_me(a,b):
  11. # print("adding %d" % a,b) works!
  12. return a+b
  13. pass
  14.  
  15. func _on_Timer_timeout():
  16. print(add_me(2,2))
  17.  
  18. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement