From cb6e7382fcafd34390365398f597dfbb4c6fe8b2 Mon Sep 17 00:00:00 2001 From: Arthur Date: Sat, 10 Dec 2022 01:21:02 +0100 Subject: [PATCH] Update Cannon.gd --- Cannon.gd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cannon.gd b/Cannon.gd index da77fe3..6fe3811 100644 --- a/Cannon.gd +++ b/Cannon.gd @@ -9,7 +9,7 @@ func _ready(): root.timeout.connect("shooting",self,"_on_signal_shooting") maxStashValue = 1 currentStashValue = 0 - currentState = STATE.INAKTIVE + currentState = STATE.INACTIVE #TODO: FINISH func interact(): if currentState == STATE.INACTIVE: @@ -21,4 +21,8 @@ func interact(): return func _on_signal_shooting(): + if currentStashValue == 1: + currentState = STATE.SHOOTING + #TODO shooting + currentState = STATE.INACTIVE pass