7 lines
142 B
GDScript

class_name Enemy
extends CharacterBody3D
signal direction_changed
func set_direction(direction: Vector3):
direction_changed.emit(direction)