Time.Freeze

This commit is contained in:
Matt Thorson committed 2020-05-07 19:10:54 -07:00
1 parent e21106ccca
commit d08d48147e
3 files changed
+16 -22

No files matched your search

+5 -1
View File
@@ -4,7 +4,11 @@ namespace Strawberry
{
static public float Elapsed;
static public float PreviousElapsed;
static public float Delta = 1 / 60f;
static public float Rate = 1f;
static public float Freeze;
static public float RawDelta => (1 / 60f);
static public float Delta => RawDelta * Rate;
static public bool OnInterval(float interval, float offset = 0)
{