improve emotion control

This commit is contained in:
CroakFang
2023-07-06 21:26:58 +08:00
parent e9c0a7a428
commit f5573496ee
13 changed files with 76 additions and 55 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ public class UmaViewerUI : MonoBehaviour
}
var container = Instantiate(UmaContainerSliderPrefab, EmotionList.content).GetComponent<UmaUIContainer>();
container.Name = emotion.label;
container.Slider.value = emotion.Weight;
container.Slider.value = emotion.weight;
container.Slider.maxValue = 1;
container.Slider.minValue = 0;
container.Slider.onValueChanged.AddListener((a) => { target.ChangeEmotionWeight(emotion, a); });