示例#1
0
文件: LProcess.cs 项目: nobcdz/LGame
 public void OnDestroy()
 {
     EndTransition();
     if (GLEx.Self != null)
     {
         GLEx.Self.Dispose();
     }
     scene = null;
     screens.Clear();
     if (isInstance)
     {
         isInstance = false;
         loads.Clear();
         unloads.Clear();
         drawings.Clear();
         if (currentControl != null)
         {
             currentControl.Destroy();
             currentControl = null;
         }
         LSystem.isLogo       = false;
         LSystem.isPaused     = true;
         LSystem.AUTO_REPAINT = false;
         LImage.DisposeAll();
         LTextures.DisposeAll();
         XNACircle.Free();
         InitDestory();
     }
 }
示例#2
0
文件: LProcess.cs 项目: nobcdz/LGame
 public LProcess(LGameXNA2DActivity p, int width, int height)
 {
     this.scene        = p;
     this.currentInput = new LInputFactory(this);
     this.screens      = new LinkedList <Screen>();
     this.width        = width;
     this.height       = height;
     this.Clear();
 }
示例#3
0
 public LProcess(LGameXNA2DActivity p, int width, int height)
 {
     this.scene = p;
     this.currentInput = new LInputFactory(this);
     this.screens = new LinkedList<Screen>();
     this.width = width;
     this.height = height;
     this.Clear();
 }
示例#4
0
 public void OnDestroy()
 {
     EndTransition();
     if (GLEx.Self != null)
     {
         GLEx.Self.Dispose();
     }
     scene = null;
     screens.Clear();
     if (isInstance)
     {
         isInstance = false;
         loads.Clear();
         unloads.Clear();
         drawings.Clear();
         if (currentControl != null)
         {
             currentControl.Destroy();
             currentControl = null;
         }
         LSystem.isLogo = false;
         LSystem.isPaused = true;
         LSystem.AUTO_REPAINT = false;
         LImage.DisposeAll();
         LTextures.DisposeAll();
         XNACircle.Free();
         InitDestory();
     }
 }