make GetTarget abstract instead of virtual

This commit is contained in:
XtraCube committed 2024-08-27 20:44:37 -04:00
1 parent 16fd8e02aa
commit 763017b6e2
1 file changed
+2 -5
+2 -5
View File
@@ -275,14 +275,11 @@ public abstract class CustomActionButton<T> : CustomActionButton where T : MonoB
{
return target;
}
/// <summary>
/// The method used to get the target object.
/// </summary>
public virtual T? GetTarget()
{
return PlayerControl.LocalPlayer.GetNearestObjectOfType<T>(Distance, ColliderTag, IsTargetValid);
}
public abstract T? GetTarget();
/// <summary>
/// Sets the outline of the target object.