From d7463e7f656ac6036eaedbf6e6a0812eef282230 Mon Sep 17 00:00:00 2001 From: Stedd Date: Sun, 24 Jul 2022 23:16:32 +0200 Subject: [PATCH] Show the chaseRange with a Gizmo --- Assets/Enemies/EnemyAI.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Enemies/EnemyAI.cs b/Assets/Enemies/EnemyAI.cs index e743fac..f1076a6 100644 --- a/Assets/Enemies/EnemyAI.cs +++ b/Assets/Enemies/EnemyAI.cs @@ -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); + } + }