mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-19 12:40:56 +00:00
WakeUpSync.GetSecondsElapsed
This commit is contained in:
parent
ab8429e543
commit
b8afa3b292
@ -71,6 +71,11 @@ public class WakeUpSync : NetworkBehaviour
|
||||
GlobalMessenger.AddListener(OWEvents.WakeUp, OnWakeUp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// same as TimeLoop.GetSecondsElapsed, but tracks time even when time is not flowing yet
|
||||
/// </summary>
|
||||
public static float GetSecondsElapsed() => Time.timeSinceLevelLoad + TimeLoop._timeOffset;
|
||||
|
||||
public float GetTimeDifference()
|
||||
{
|
||||
var myTime = Time.timeSinceLevelLoad;
|
||||
|
Loading…
x
Reference in New Issue
Block a user