コード例 #1
0
 // Token: 0x060000F5 RID: 245 RVA: 0x00005F42 File Offset: 0x00004342
 private void Update()
 {
     if (Input.GetKeyUp(KeyCode.Escape) && CBExternal.onBackPressed())
     {
         return;
     }
 }
コード例 #2
0
 void Update()
 {
                 #if UNITY_ANDROID
     // Handle the Android back button (only if impressions are set to not use activities)
     if (Input.GetKeyUp(KeyCode.Escape))
     {
         // Check if Chartboost wants to respond to it
         if (CBExternal.onBackPressed())
         {
             // If so, return and ignore it
             return;
         }
     }
                 #endif
 }
コード例 #3
0
 void Update()
 {
                 #if UNITY_ANDROID
     // Handle the Android back button (only if impressions are set to not use activities)
     if (Input.GetKeyUp(KeyCode.Escape))
     {
         // Check if Chartboost wants to respond to it
         if (CBExternal.onBackPressed())
         {
             // If so, return and ignore it
             return;
         }
         else
         {
             // Otherwise, handle it ourselves -- let's close the app
             Application.Quit();
         }
     }
                 #endif
 }