mirror of
https://github.com/PfandBoss/SemesterGameJam2022.git
synced 2025-11-12 12:16:14 +01:00
Update Cannon.gd
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user