Cybolic

Godot Script Global Issue

Jul 25th, 2015
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. extends Node
  2.  
  3. var global_var = "World"
  4.  
  5. func _ready():
  6. var test = TestClass.new()
  7. test.test_global_var()
  8.  
  9. class TestClass:
  10. func _init():
  11. pass
  12.  
  13. func test_global_var():
  14. print("Hello "+global_var)
Advertisement
Add Comment
Please, Sign In to add comment