MonoBehaviour-OnDisable() - Unity スクリプトリファレンス

This function is called when the behaviour becomes disabled.