change: altered camera for smoother and more responsive lock-on (mainly jitter from the arbitrary target, locking rotation)

This commit is contained in:
Chris
2025-08-06 15:23:42 -04:00
parent fa2b7ea3ad
commit eb06a5d33c
13 changed files with 185 additions and 53 deletions

View File

@@ -1,14 +1,14 @@
using System;
using UnityEngine;
public class GenericLockOnTarget : MonoBehaviour, ILockOnTarget{
public float lockonTargetRadius{ get; set; } = 1f;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start(){
public void OnTargetDelete(){
GetComponent<ILockOnTarget>().SafelyDeleteTarget();
}
void Update(){
void OnDestroy(){
OnTargetDelete();
}
}