void Update() { #if UNITY_ANDROID if (Input.GetKeyUp(KeyCode.Escape)) { if (StartAppWrapper.onBackPressed(gameObject.name) == false) { Application.Quit(); } } #endif }
void Update() { if (Application.platform == RuntimePlatform.Android) { if (Input.GetKeyUp(KeyCode.Escape)) { if (StartAppWrapper.onBackPressed(gameObject.name) == false) { Application.Quit(); } } } }
void Update() { #if UNITY_ANDROID if (Input.GetKeyUp(KeyCode.Escape)) { if (StartAppWrapper.onBackPressed(gameObject.name) == false) { StartAppWrapper.showAd(); StartAppWrapper.loadAd(); exit(); } } #endif }