mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 00:39:53 +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);
|
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()
|
public float GetTimeDifference()
|
||||||
{
|
{
|
||||||
var myTime = Time.timeSinceLevelLoad;
|
var myTime = Time.timeSinceLevelLoad;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user