コード例 #1
0
 /// <summary>
 /// Loads app state (cloud save) data from the server.
 /// </summary>
 /// <param name='slot'>
 /// The app state slot number. The exact number of slots and their size can be seen
 /// in the Google Play Games documentation. Slot 0 is always available, and is at
 /// least 128K long.
 /// </param>
 /// <param name='callbacks'>
 /// The callbacks to call when the state is loaded, or when a conflict occurs.
 /// </param>
 public void LoadState(int slot, OnStateLoadedListener listener)
 {
     if (!IsAuthenticated())
     {
         Logger.e("LoadState can only be called after authentication.");
         if (listener != null)
         {
             listener.OnStateLoaded(false, slot, null);
         }
         return;
     }
     mClient.LoadState(slot, listener);
 }