When the relevant application is closed, before and after the function call to order

Awake()->

OnEnable()->

Start()->

Update()->

Lateupdate()->

OnGUI()->

OnApplicationQuit()->

OnDisable()->

OnDestroy ()

Guess you like

Origin www.cnblogs.com/wangqijun/p/11687289.html