public void OnSliderMaxValueReached() { //Debug.Log(lastVal); if (lastVal != Vals.max) { scrubCount++; m_Throwable.ManuallyDetatchThisObject(); gameObject.SetActive(false); } lastVal = Vals.max; }