Show the chaseRange with a Gizmo

This commit is contained in:
Stedd 2022-07-24 23:16:32 +02:00
parent 5c39557f24
commit d7463e7f65
1 changed files with 6 additions and 0 deletions

View File

@ -28,4 +28,10 @@ public class EnemyAI : MonoBehaviour
return Vector3.Distance(gameObject.transform.position, targetPosition); return Vector3.Distance(gameObject.transform.position, targetPosition);
} }
void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(transform.position, chaseRange);
}
} }