Added new Game logic library to assist with game projects
This commit is contained in:
@@ -11,12 +11,9 @@ namespace GameDevLibrary.Helpers
|
||||
|
||||
private static Stopwatch GetStopwatch(string key)
|
||||
{
|
||||
Stopwatch stopwatch = new Stopwatch();
|
||||
Stopwatch stopwatch;
|
||||
|
||||
if (_stopwatches.TryGetValue(key, out stopwatch))
|
||||
{
|
||||
}
|
||||
else
|
||||
if (!_stopwatches.TryGetValue(key, out stopwatch))
|
||||
{
|
||||
stopwatch = new Stopwatch();
|
||||
_stopwatches.Add(key, stopwatch);
|
||||
|
||||
Reference in New Issue
Block a user