Method OnDisable OnDisable() This function is called when the behaviour becomes disabled. Declaration protected void OnDisable()