标签:des style blog http ar io color os sp
测试结果为关闭游戏,会调用OnDestroy().但OnApplicationQuit()比它提前调。
using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { void OnApplicationQuit() { Debug.Log("111"); } void OnDestroy() { Debug.Log("222"); } }
输出:
111
222
标签:des style blog http ar io color os sp
原文地址:http://www.cnblogs.com/hont/p/4166742.html