Пример #1
0
 // called from game thread
 public void LoadState(int slot, OnStateLoadedListener listener)
 {
     Logger.d("AndroidClient.LoadState, slot=" + slot);
     CallClientApi("load state slot=" + slot, () => {
         OnStateResultProxy proxy = new OnStateResultProxy(this, listener);
         mGHManager.CallGmsApiWithResult("appstate.AppStateManager", null, "load",
                                         proxy, slot);
     }, null);
 }
Пример #2
0
 public void LoadState(int slot, OnStateLoadedListener listener)
 {
     Logger.d("AndroidClient.LoadState, slot=" + slot);
     this.CallClientApi("load state slot=" + slot, delegate
     {
         OnStateResultProxy callbackProxy = new OnStateResultProxy(this, listener);
         this.mGHManager.CallGmsApiWithResult("appstate.AppStateManager", null, "load", callbackProxy, new object[]
         {
             slot
         });
     }, null);
 }
 // called from game thread
 public void LoadState(int slot, OnStateLoadedListener listener)
 {
     Logger.d("AndroidClient.LoadState, slot=" + slot);
     CallClientApi("load state slot=" + slot, () => {
         OnStateResultProxy proxy = new OnStateResultProxy(this, listener);
         mGHManager.CallGmsApiWithResult("appstate.AppStateManager", null, "load",
                 proxy, slot);
     }, null);
 }