improv: lock on targeting debugging option (cont.)
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user