public Timer() { isTimerStopped = true; ticksPerSecond = 0; stopTime = 0; lastElapsedTime = 0; baseTime = 0; // Use QueryPerformanceFrequency to get frequency of the timer isUsingQPF = QueryPerformanceFrequency(ref ticksPerSecond); if(t != null) t = new Timer(); }
//Initialiser public override void Init() { T = new Timer(); }
//Initialiser public override void Init() { _FadeColor = System.Drawing.Color.Black; _MinAlpha = 0; _MaxAlpha = 255; FadeAlpha = 0; Faded = false; Fading = false; AutoFadeBack = false; FadeTimer = new Timer(); FadeScreen = new Quad(0, 0, GameEnvironment.Screen.Width, GameEnvironment.Screen.Height); }