yield!
This commit is contained in:
parent
2d46eebba6
commit
113c2eca4d
@ -11,6 +11,7 @@ func _ready():
|
|||||||
func _process(delta):
|
func _process(delta):
|
||||||
# Taking a pill
|
# Taking a pill
|
||||||
if Input.is_action_just_pressed("take_pill"):
|
if Input.is_action_just_pressed("take_pill"):
|
||||||
Pills.take_pill()
|
|
||||||
#Logger.info("Player took a pill, new level: %s" % [Pills.get_round_level()])
|
#Logger.info("Player took a pill, new level: %s" % [Pills.get_round_level()])
|
||||||
_animation.play("PillTaking")
|
_animation.play("PillTaking")
|
||||||
|
yield(_animation, "animation_finished")
|
||||||
|
Pills.take_pill()
|
Loading…
x
Reference in New Issue
Block a user