private void OnSliderValueChanged(float value) { ui.SetDna(slotIndex, value); Dictionary <string, DnaSetter> DNA = ui.UmaModel.CacheUmaAvatar.GetDNA(); if (DNA.ContainsKey(dnaName)) { DNA[dnaName].Set(value); } ui.UmaModel.CacheUmaAvatar.ForceUpdate(true, false, false); }
private void OnSliderValueChanged(float value) { ui.SetDna(slotIndex, value); ui.UmaModel.CacheUmaAvatar.GetDNA()[dnaName].Set(value); ui.UmaModel.CacheUmaAvatar.ForceUpdate(true, false, false); }