improv: lock on targeting debugging option (cont.)

This commit is contained in:
Chris
2025-10-04 16:59:03 -04:00
parent b60f8e8619
commit 21cf013c10

View File

@@ -1,10 +1,14 @@
using System; using System;
using Reset.Core; using Reset.Core;
using Sirenix.OdinInspector;
using UnityEngine; using UnityEngine;
namespace Reset.Units{ namespace Reset.Units{
public class Enemy : Unit, ILockOnTarget, IKillable { public class Enemy : Unit, ILockOnTarget, IKillable {
public float lockonTargetRadius{ get; set; } = 10f; public float lockonTargetRadius{ get; set; } = 10f;
[ShowInInspector]
public bool lockonDebug{ get; set; } = true;
public float lockonRaycastVerticalOffset{ get; set; } = 1f;
public Animator testModelAnimator; public Animator testModelAnimator;
@@ -43,6 +47,7 @@ namespace Reset.Units{
void Update(){ void Update(){
GetComponent<IKillable>().DrawHealthDebug(); GetComponent<IKillable>().DrawHealthDebug();
lockonDebug = true;
} }
public float maxHealth{ get; set; } public float maxHealth{ get; set; }