Added state component
This commit is contained in:
@ -13,11 +13,11 @@ var id: String
|
||||
var controller: Controller
|
||||
|
||||
func use_skill(slot: int):
|
||||
if get_node("State").current == StateComponent.State.Skill:
|
||||
return
|
||||
|
||||
skill_used.emit(skills[slot])
|
||||
|
||||
func dash():
|
||||
dashed.emit()
|
||||
|
||||
func jump():
|
||||
jumped.emit()
|
||||
|
||||
|
Reference in New Issue
Block a user