/// <summary> /// Update the variable to the current slider value /// </summary> public void UpdateVariable() { gameVar.ChangeValue((int)slider.targetValue, false); }