Method OnDisable OnDisable() Unity calls this method when the object goes out of scope. Declaration protected virtual void OnDisable()