add attacks and death

This commit is contained in:
2025-02-26 16:17:14 +09:00
parent 151a757e3e
commit 3f1f4b1811
9 changed files with 83 additions and 14 deletions
+5
View File
@@ -1,12 +1,17 @@
extends State
func enter() -> void:
super()
subject.rotation_base.global_rotation.z = PI / 2
subject.collider.disabled = true
func exit() -> void:
super()
subject.rotation_base.global_rotation.z = 0
subject.collider.disabled = false
func process_physics(_delta: float) -> State:
if not multiplayer.is_server(): return
if not subject.dead: return %Idle
return