File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
com.unity.netcode.gameobjects/Runtime/Timing Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,16 @@ public NetworkTime ToFixedTime()
118118 return new NetworkTime ( m_TickRate , m_CachedTick ) ;
119119 }
120120
121+ /// <summary>
122+ /// Calculates a NetworkTime value representing a point in the past relative to the current time (few ticks in the past)
123+ /// </summary>
124+ /// <param name="ticks">The number of ticks ago we're querying the time.</param>
125+ /// <returns>A NetworkTime value representing the calculated past time point</returns>
126+ public NetworkTime TimeTicksAgo ( int ticks )
127+ {
128+ return TimeTicksAgo ( ticks , 0.0f ) ;
129+ }
130+
121131 /// <summary>
122132 /// Calculates a NetworkTime value representing a point in the past relative to the current time (few ticks in the past)
123133 /// </summary>
You can’t perform that action at this time.
0 commit comments