Update Cannon.gd

This commit is contained in:
Arthur
2022-12-10 01:21:02 +01:00
parent d8f6b92ebb
commit cb6e7382fc

View File

@@ -9,7 +9,7 @@ func _ready():
root.timeout.connect("shooting",self,"_on_signal_shooting") root.timeout.connect("shooting",self,"_on_signal_shooting")
maxStashValue = 1 maxStashValue = 1
currentStashValue = 0 currentStashValue = 0
currentState = STATE.INAKTIVE currentState = STATE.INACTIVE
#TODO: FINISH #TODO: FINISH
func interact(): func interact():
if currentState == STATE.INACTIVE: if currentState == STATE.INACTIVE:
@@ -21,4 +21,8 @@ func interact():
return return
func _on_signal_shooting(): func _on_signal_shooting():
if currentStashValue == 1:
currentState = STATE.SHOOTING
#TODO shooting
currentState = STATE.INACTIVE
pass pass