示例#1
0
 private void CheckedActiveGame()
 {
     //Does our user doesn't have an active game?
     if (user.activeGame == "" || user.activeGame == null)
     {
         //Start the new game process
         Log("No active game for the user, look for a game");
         StartCoroutine(fbManager.CheckForGame("games/", NewGameLoaded));
     }
     else
     {
         //We already have a game, load it
         Log("Loading Game: " + user.activeGame);
         StartCoroutine(fbManager.LoadData("games/" + user.activeGame, GameLoaded));
     }
 }