Added network sub threads
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user