class_name Player
extends CharacterBody3D

signal attacked
signal dashed
signal jumped
signal direction_changed

var controller: Controller

func attack():
	attacked.emit()

func dash():
	dashed.emit()

func jump():
	jumped.emit()

func set_direction(direction: Vector3):
	direction_changed.emit(direction)

# TODO: Remove this:

var id: String

func set_character_name(new_name: String):
	name = new_name
	$Label.text = name