Reorganized file structure

This commit is contained in:
2024-02-13 12:02:17 +01:00
parent 7347c85ca7
commit bbef2a0a4a
5 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,11 @@
class_name EnemyController
extends Controller
var enemy: Enemy
func _ready():
enemy = owner
func _process(_delta):
var direction := (Global.player.global_position - enemy.global_position).normalized()
enemy.set_direction(direction)