it works
This commit is contained in:
14
globals/game_manager.gd
Normal file
14
globals/game_manager.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Node
|
||||
|
||||
var score: int = 0
|
||||
var sl = null
|
||||
|
||||
func set_label(label:Label):
|
||||
score = 0
|
||||
sl = label
|
||||
|
||||
func add_point():
|
||||
score+=1
|
||||
sl.text ="You got " + str(score) + " coins"
|
||||
print(score)
|
||||
|
||||
Reference in New Issue
Block a user