starting work on enemy hearing
This commit is contained in:
@@ -10,6 +10,10 @@ func Enter():
|
||||
search_point()
|
||||
search_timer = SEARCH_TIME_MAX
|
||||
|
||||
func Exit():
|
||||
enemy.player_last_seen = null
|
||||
enemy.points_of_interest = []
|
||||
|
||||
func Update(delta: float):
|
||||
super(delta)
|
||||
|
||||
@@ -19,6 +23,7 @@ func Update(delta: float):
|
||||
Transitioned.emit(self,"idle")
|
||||
|
||||
attack_on_sight()
|
||||
search_for_suspicious_sounds()
|
||||
search_point()
|
||||
|
||||
if enemy.global_position.distance_to(move_target_adj()) < 1:
|
||||
|
||||
Reference in New Issue
Block a user