OnDestroy

OnDestroy()

protected void OnDestroy() ;

説明

この関数はMonoBehaviourが破棄されるときに呼び出される。