added: lock-on mechanics testing
This commit is contained in:
15
Assets/Scripts/Core/GenericLockOnTarget.cs
Normal file
15
Assets/Scripts/Core/GenericLockOnTarget.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class GenericLockOnTarget : MonoBehaviour, ILockOnTarget{
|
||||
public float lockonTargetRadius{ get; set; } = 1f;
|
||||
public Renderer thisRenderer { get; }
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start(){
|
||||
|
||||
}
|
||||
|
||||
void Update(){
|
||||
Debug.Log((this as ILockOnTarget).GetReticlePosition());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user