12 lines
248 B
GDScript
12 lines
248 B
GDScript
extends PlayerState
|
|
class_name PlayerAttack
|
|
|
|
func Enter():
|
|
character.anim_player.play("attack")
|
|
character.velocity.x = 0
|
|
character.velocity.z = 0
|
|
|
|
func Update(delta):
|
|
if !character.anim_player.is_playing():
|
|
Transitioned.emit(self,"on floor")
|