refactor: moved a lot of player related scripts to the Reset.Units namespace
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class GenericLockOnTarget : MonoBehaviour, ILockOnTarget{
|
||||
public float lockonTargetRadius{ get; set; } = 1f;
|
||||
public bool lockonDebug{ get; set; } = false;
|
||||
public float lockonRaycastVerticalOffset{ get; set; }
|
||||
namespace Reset.Units{
|
||||
public class GenericLockOnTarget : MonoBehaviour, ILockOnTarget{
|
||||
public float lockonTargetRadius{ get; set; } = 1f;
|
||||
public bool lockonDebug{ get; set; } = false;
|
||||
public float lockonRaycastVerticalOffset{ get; set; }
|
||||
|
||||
public void OnTargetDelete(){
|
||||
GetComponent<ILockOnTarget>().SafelyDeleteTarget();
|
||||
}
|
||||
public void OnTargetDelete(){
|
||||
GetComponent<ILockOnTarget>().SafelyDeleteTarget();
|
||||
}
|
||||
|
||||
void OnDestroy(){
|
||||
OnTargetDelete();
|
||||
void OnDestroy(){
|
||||
OnTargetDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user