Show the chaseRange with a Gizmo
This commit is contained in:
parent
5c39557f24
commit
d7463e7f65
|
@ -28,4 +28,10 @@ public class EnemyAI : MonoBehaviour
|
|||
return Vector3.Distance(gameObject.transform.position, targetPosition);
|
||||
}
|
||||
|
||||
void OnDrawGizmosSelected()
|
||||
{
|
||||
Gizmos.color = Color.red;
|
||||
Gizmos.DrawWireSphere(transform.position, chaseRange);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue