sneak/Shared/Clock.cs
Colin McMillen f5ca85264f Add Clock class & use it from Player and SneakGame
GitOrigin-RevId: fe20c836ca693fdabad4ce72bfdf8952b59b735b
2020-02-13 14:51:19 -05:00

16 lines
312 B
C#

using System;
namespace SemiColinGames {
class Clock {
private static TimeSpan modelTime = new TimeSpan();
public static void AddModelTime(double seconds) {
modelTime += TimeSpan.FromSeconds(seconds);
}
public static TimeSpan ModelTime {
get { return modelTime; }
}
}
}