add attacks and death
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user