From 21cf013c105f7f142145e402435c8c96bb09ffba Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 4 Oct 2025 16:59:03 -0400 Subject: [PATCH] improv: lock on targeting debugging option (cont.) --- Assets/Scripts/Units/Enemy.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/Scripts/Units/Enemy.cs b/Assets/Scripts/Units/Enemy.cs index d45eea9..3bfbe60 100644 --- a/Assets/Scripts/Units/Enemy.cs +++ b/Assets/Scripts/Units/Enemy.cs @@ -1,10 +1,14 @@ using System; using Reset.Core; +using Sirenix.OdinInspector; using UnityEngine; namespace Reset.Units{ public class Enemy : Unit, ILockOnTarget, IKillable { public float lockonTargetRadius{ get; set; } = 10f; + [ShowInInspector] + public bool lockonDebug{ get; set; } = true; + public float lockonRaycastVerticalOffset{ get; set; } = 1f; public Animator testModelAnimator; @@ -43,6 +47,7 @@ namespace Reset.Units{ void Update(){ GetComponent().DrawHealthDebug(); + lockonDebug = true; } public float maxHealth{ get; set; }