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