mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
make GetTarget abstract instead of virtual
This commit is contained in:
1 parent
16fd8e02aa
commit
763017b6e2
1 file changed
+2
-5
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user