imporve live camera

This commit is contained in:
左右看
2023-07-24 11:42:01 +08:00
parent a13cac6ede
commit 1ff1ec02af
7 changed files with 73 additions and 23 deletions
+3 -1
View File
@@ -676,14 +676,16 @@ public class UmaViewerBuilder : MonoBehaviour
// Move the GameObject (you attach this in the Inspector) to the newly loaded Scene
transferObjs.ForEach(o => SceneManager.MoveGameObjectToScene(o, SceneManager.GetSceneByName("LiveScene")));
characters.ForEach(a =>
{
if (a.CharaEntry == null || a.CostumeId == "")
{
a.CharaEntry = Main.Characters[Random.Range(0, Main.Characters.Count/2)];
a.CostumeId = "00";
a.CostumeId = "0002_00_00";
}
});//fill empty
LoadLiveUma(characters);