Closed maykelsb closed 2 years ago
It guards a space until perceive the hero, so it chases him while in contact. After lose contact, it returns to guard mode.
https://gamedevelopment.tutsplus.com/tutorials/understanding-steering-behaviors-seek--gamedev-849
Preliminar version using: https://docs.unity3d.com/ScriptReference/Vector3.MoveTowards.html
It guards a space until perceive the hero, so it chases him while in contact. After lose contact, it returns to guard mode.