예제 #1
0
 public void Draw()
 {
     if (CurrentScene != null)
     {
         CurrentScene.Draw();
     }
     if (LoadingThread != null)
     {
         LoadingScene.Draw();
     }
 }
예제 #2
0
 public void Update(int[] presscount, bool[] released, Device device, Sprite sprite, ExSound sound)
 {
     Device = device;
     Sprite = sprite;
     Sound  = sound;
     if (CurrentScene != null)
     {
         CurrentScene.Update(presscount, released);
     }
     if (NextScene != null)
     {
         if (LoadingThread.ThreadState == ThreadState.Stopped)
         {
             LoadingThread.Join();
             LoadingThread = null;
             CurrentScene  = NextScene;
             NextScene     = null;
         }
     }
     if (LoadingThread != null)
     {
         LoadingScene.Update(presscount, released);
     }
 }