Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
iOSGameTestControler.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 #if SILICONSTUDIO_PLATFORM_IOS
4 
5 using SiliconStudio.Paradox.Games;
6 
7 namespace SiliconStudio.Paradox.Graphics.Regression
8 {
9  public class iOSGameTestController : ParadoxGameController
10  {
11  private readonly GameBase game;
12 
13  public iOSGameTestController(GameBase game)
14  {
15  this.game = game;
16  }
17 
18  public override void ViewDidDisappear(bool animated)
19  {
20  base.ViewDidDisappear(animated);
21 
22  if (game != null)
23  game.Dispose();
24  }
25  }
26 }
27 
28 #endif