12345678910111213141516171819202122232425262728293031323334 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class APPExit : MonoBehaviour
- {
-
- void Start()
- {
-
- }
-
- void Update()
- {
-
- }
- private void OnApplicationPause(bool pauseStatus)
- {
- if (pauseStatus)
- {
- Debug.Log("应用进入后台");
-
- Application.Quit();
- }
- else
- {
- Debug.Log("应用返回前台");
-
- }
- }
- }
|