private void OnEnable() { MidiMaster.noteOffDelegate += NoteOff; MidiMaster.noteOnDelegate += NoteOn; StartScale = transform.localScale.x; OriginalFat = FatJuice; OriginalSpeed = Speed; masterValues = gameObject.GetComponent <MasterValues>(); }
public void SetMasterValues(List <MasterValue> list) { Device.DeviceManager.JsonAPIClient.Channel_SetMasterValues(this, list); foreach (var mv in list) { if (MasterValues.ContainsKey(mv.Name)) { MasterValues[mv.Name].Value = mv.Value; } } }
public void SetMasterValues(List <Mastervalue> list) { //update on the server Device.DeviceManager.JsonAPIClient.Channel_SetMasterValues(this, list); //update locally foreach (var mv in list) { if (MasterValues.ContainsKey(mv.Name)) { MasterValues[mv.Name].Value = mv.Value; } } }