added controller support and attack
This commit is contained in:
@@ -1,2 +1,11 @@
|
||||
extends State
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user