mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 09:39:56 +00:00
add Name field to SyncBase
This commit is contained in:
parent
ce174fe455
commit
1f6636065f
@ -113,7 +113,10 @@ namespace QSB.Syncs
|
||||
public Transform AttachedTransform { get; private set; }
|
||||
public Transform ReferenceTransform { get; private set; }
|
||||
|
||||
public string LogName => (IsPlayerObject ? $"{Player.PlayerId}." : string.Empty) + $"{netId}:{GetType().Name}";
|
||||
public string Name => AttachedTransform ? AttachedTransform.name : "<NullObject!>";
|
||||
public string LogName => (IsPlayerObject ? $"{Player.PlayerId}." : string.Empty)
|
||||
+ $"{netId}:{GetType().Name} ({Name})";
|
||||
|
||||
protected virtual float DistanceLeeway => 5f;
|
||||
private float _previousDistance;
|
||||
protected const float SmoothTime = 0.1f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user