Skip to content

Commit 403e863

Browse files
committed
Exposed lastSyncTime in SyncedVar attribute
1 parent 7257358 commit 403e863

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MLAPI/Attributes/SyncedVar.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public class SyncedVar : Attribute
2020
/// The delay for syncing this variable.
2121
/// </summary>
2222
public float syncDelay = 0.1f;
23-
internal float lastSyncTime = 0f;
23+
/// <summary>
24+
/// Gets the time the Syncedvar was last synced
25+
/// </summary>
26+
public float lastSyncTime { get; internal set; }
2427
}
2528
}

0 commit comments

Comments
 (0)