improv: lock on targeting debugging option

This commit is contained in:
Chris
2025-10-04 16:56:28 -04:00
parent 1240afb051
commit de460d9f0a
3 changed files with 29 additions and 11 deletions

View File

@@ -2,7 +2,10 @@ using System;
using UnityEngine;
public interface ILockOnTarget {
public float lockonTargetRadius { set; }
public float lockonTargetRadius { set; get; }
public bool lockonDebug { set; get; }
public float lockonRaycastVerticalOffset { set; get; }
Transform transform {get;}
GameObject gameObject{ get; }
@@ -19,6 +22,7 @@ public interface ILockOnTarget {
if (gameObject.GetComponent<Renderer>()){
Bounds objectBounds = gameObject.GetComponent<Renderer>().bounds;
upValue = objectBounds.size.y;
upValue = 4f;
}
Vector3 reticlePosition = new Vector3(transform.position.x, transform.position.y + upValue, transform.position.z);