void OnChange(float value) { int v = (int)value; modeManager.SetModeInt(v); Mode m = (Mode)v; text.text = "Mode - " + m.ToString(); }