コード例 #1
0
 // called from game thread
 public void LoadState(int slot, OnStateLoadedListener listener)
 {
     Logger.d("AndroidClient.LoadState, slot=" + slot);
     CallAppStateClientApi("load state slot=" + slot, (AndroidJavaObject c) => {
         OnStateLoadedProxy proxy = new OnStateLoadedProxy(this, listener);
         c.Call("loadState", proxy, slot);
     }, null);
 }
コード例 #2
0
 // called from game thread
 public void LoadState(int slot, OnStateLoadedListener listener) {
     Logger.d("AndroidClient.LoadState, slot=" + slot);
     CallAppStateClientApi("load state slot=" + slot, (AndroidJavaObject c) => {
         OnStateLoadedProxy proxy = new OnStateLoadedProxy(this, listener);
         c.Call("loadState", proxy, slot);
     }, null);
 }