public static void Initialize() { Game.GameStarted += (sender, args) => { var game = (Game)sender; var testingSystem = new GameTestingSystem(game.Services); game.GameSystems.Add(testingSystem); }; }
public static void Initialize() { //Quit after 10 seconds anyway! Task.Run(async () => { await Task.Delay(20000); if (!GameTestingSystem.Initialized) { #if SILICONSTUDIO_PLATFORM_IOS || SILICONSTUDIO_PLATFORM_ANDROID || SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP Console.WriteLine(@"FATAL: Test launch timeout. Aborting."); #endif GameTestingSystem.Quit(); } }); //quit after 10 seconds in any case Game.GameStarted += (sender, args) => { var game = (Game)sender; var testingSystem = new GameTestingSystem(game.Services); game.GameSystems.Add(testingSystem); }; }
public static void Initialize() { //Quit after 10 seconds anyway! Task.Run(async() => { await Task.Delay(20000); if (!GameTestingSystem.Initialized) { #if SILICONSTUDIO_PLATFORM_IOS || SILICONSTUDIO_PLATFORM_ANDROID || SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP Console.WriteLine(@"FATAL: Test launch timeout. Aborting."); #endif GameTestingSystem.Quit(); } }); //quit after 10 seconds in any case Game.GameStarted += (sender, args) => { var game = (Game)sender; var testingSystem = new GameTestingSystem(game.Services); game.GameSystems.Add(testingSystem); }; }