mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-22 12:39:51 +00:00
Revert "change ShouldDisplayLabel to property"
This reverts commit 6c301049516190c559dc1bf0d485a53c6aa79892.
This commit is contained in:
parent
d030d9746f
commit
07aee5c3ea
@ -25,7 +25,7 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ShouldDisplayLabel => ControllingPlayer != 0;
|
||||
public override bool ShouldDisplayLabel() => ControllingPlayer != 0;
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ namespace QSB.WorldSync
|
||||
|
||||
void OnRemoval();
|
||||
MonoBehaviour ReturnObject();
|
||||
bool ShouldDisplayLabel { get; }
|
||||
bool ShouldDisplayLabel();
|
||||
string ReturnLabel();
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ namespace QSB.WorldSync
|
||||
public virtual void Init() { }
|
||||
public virtual void OnRemoval() { }
|
||||
public MonoBehaviour ReturnObject() => AttachedObject;
|
||||
public virtual bool ShouldDisplayLabel => true;
|
||||
public virtual bool ShouldDisplayLabel() => true;
|
||||
public virtual string ReturnLabel() => LogName;
|
||||
|
||||
/// indicates that this won't become ready immediately
|
||||
|
@ -136,7 +136,7 @@ namespace QSB.WorldSync
|
||||
|
||||
foreach (var obj in QSBWorldSync.GetWorldObjects())
|
||||
{
|
||||
if (obj.ShouldDisplayLabel)
|
||||
if (obj.ShouldDisplayLabel())
|
||||
{
|
||||
DebugGUI.DrawLabel(obj.ReturnObject().transform, obj.ReturnLabel());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user