|
|
@@ -130,7 +130,7 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
|
|
|
|
private static IEnumerator<TaskContract> GoToGameTests() |
|
|
|
{ |
|
|
|
Client app = new Client(); |
|
|
|
/*Client app = new Client(); |
|
|
|
int oldLength = 0; |
|
|
|
while (app.MyGames.Length == 0 || oldLength != app.MyGames.Length) |
|
|
|
{ |
|
|
@@ -138,11 +138,10 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
yield return new WaitForSecondsEnumerator(1).Continue(); |
|
|
|
} |
|
|
|
yield return Yield.It; |
|
|
|
app.MyGames[0].EnterGame(); |
|
|
|
// returning from a new game without saving will hard lock GC (it's an invalid state) |
|
|
|
//Game newGame = Game.NewGame(); |
|
|
|
//yield return new WaitForSecondsEnumerator(5).Continue(); // wait for sync |
|
|
|
//newGame.EnterGame(); |
|
|
|
app.MyGames[0].EnterGame();*/ |
|
|
|
Game newGame = Game.NewGame(); |
|
|
|
yield return new WaitForSecondsEnumerator(5).Continue(); // wait for sync |
|
|
|
newGame.EnterGame(); |
|
|
|
} |
|
|
|
|
|
|
|
private static IEnumerator<TaskContract> GameTests() |
|
|
|