A demo for using CriWare plugin.

This commit is contained in:
左右看
2022-09-09 22:47:10 +08:00
parent 6169e23829
commit c94407530d
7 changed files with 102 additions and 12 deletions
+16 -1
View File
@@ -55,6 +55,8 @@ public class UmaViewerUI : MonoBehaviour,FaceLoadCallBack
public Color UIColor1, UIColor2;
public bool isCirware = false;
private void Awake()
{
Instance = this;
@@ -268,6 +270,12 @@ public class UmaViewerUI : MonoBehaviour,FaceLoadCallBack
}
}
public void SetCriWare(bool value)
{
isCirware = value;
}
void ListLiveSounds(int songid)
{
for (int i = LiveCharaSoundList.content.childCount - 1; i >= 0; i--)
@@ -283,7 +291,14 @@ public class UmaViewerUI : MonoBehaviour,FaceLoadCallBack
container.Name.text = name;
container.Button.onClick.AddListener(() => {
HighlightChildImage(LiveCharaSoundList.content, container.GetComponent<Image>());
Builder.LoadLiveSound(songid, entry);
if (isCirware)
{
Builder.LoadLiveSoundCri(songid, entry);
}
else
{
Builder.LoadLiveSound(songid, entry);
}
});
}