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