예제 #1
0
 public void Start()
 {
     if (mode == Mode.Multithreaded && delay > 0)
     {
         threadMarker = true;
         Thread th = new Thread(Init);
         th.Start();
         while (true)
         {
             threadMarker = false;
             game.Event(-1);
             threadMarker = true;
             Thread.Sleep(delay);
         }
     }
     else
     {
         Init();
     }
 }