Added network sub threads

This commit is contained in:
2024-02-19 16:03:08 +01:00
parent 54f2b9c686
commit f7209d2164
3 changed files with 10 additions and 1 deletions

View File

@ -10,5 +10,8 @@ func _ready():
enemy = owner
func _process(_delta):
if !Global.player:
return
var direction := (Global.player.global_position - enemy.global_position).normalized()
direction_changed.emit(direction)