I have a maze game. After you press Enter, you can enter the cheat code, also the timer will stop. But after entering the code, my timer resumes, but it decreases 3 times every second. Here's the condition for pressing Enter:
Here is my setTimer () code:
static System.Timers.Timer t = new System.Timers.Timer(); static int gTime = 300; public void setTimer(int pause) { t.Interval = 1000;
Is there something wrong? Did I miss something?
source share