11 lines
188 B
GDScript
11 lines
188 B
GDScript
extends WeaponState
|
|
|
|
func _enter() -> void:
|
|
machine.play("idle")
|
|
|
|
func _exit() -> void:
|
|
pass
|
|
|
|
func _use_begin(timestamp: float) -> void:
|
|
if machine.ammo > 0:
|
|
transition.emit("Throw")
|