void OnSliderChangeRequest(KnobHandler.SliderLevels levels) { VentanaRequestFactory requestFactory = VentanaRequestFactory.Instance; Debug.Log("Requesting a: " + levels.XAxisLevel + (levels.XAxisLevel > 0 ? " increase" : " decrease")); int baseLevel = levels.XAxisLevel * brightnessMultipler; StartCoroutine(requestFactory.PostToLightAPIEndpoint(brightCommand, VentanaID, baseLevel.ToString())); }
void OnSliderChangeRequest(KnobHandler.SliderLevels levels) { VentanaRequestFactory requestFactory = VentanaRequestFactory.Instance; Debug.Log("Requesting a: " + levels.XAxisLevel + (levels.XAxisLevel > 0 ? " increase" : " decrease")); int baseLevel = levels.XAxisLevel * volumeMultiplier; StartCoroutine(requestFactory.PostToMusicAPIEndpoint("volume", VentanaID, (levels.XAxisLevel > 0 ? "+" : "") + baseLevel.ToString())); }