MonoBehaviour.OnApplicationQuit 当程序退出

function OnApplicationQuit () : void

Description描述

Sent to all game objects before the application is quit.

在应用退出之前发送给所有的游戏物体。

In the editor this is called when the user stops playmode. In the web player it is called when the web view is closed.

当用户停止运行模式时在编辑器中调用。当web被关闭时在网络播放器中被调用。

Page last updated: 2011-1-2