修改加载模型逻辑

This commit is contained in:
YangHua 2023-11-19 18:38:44 +08:00
parent aa5d545d0b
commit 2d6bb93cd2
4 changed files with 4 additions and 4 deletions

View File

@ -251,5 +251,5 @@ MonoBehaviour:
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
modelname_text: {fileID: 0} modelname_text: {fileID: 3438159621284867111}
isDragWRJ: 0 isDragWRJ: 0

View File

@ -173,7 +173,7 @@ MonoBehaviour:
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
modelname_text: {fileID: 0} modelname_text: {fileID: 5970882835879795696}
isDragWRJ: 0 isDragWRJ: 0
--- !u!1 &5970882835879795698 --- !u!1 &5970882835879795698
GameObject: GameObject:

View File

@ -177,7 +177,7 @@ MonoBehaviour:
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
- {fileID: 0} - {fileID: 0}
modelname_text: {fileID: 0} modelname_text: {fileID: 3625114602127132433}
isDragWRJ: 1 isDragWRJ: 1
--- !u!1 &3625114603613546360 --- !u!1 &3625114603613546360
GameObject: GameObject:

View File

@ -129,7 +129,7 @@ public class GameManager : MonoBehaviour
{ {
string info = UIBootstrap.Instance.currentSceneInfo.data.DeviceContent; string info = UIBootstrap.Instance.currentSceneInfo.data.DeviceContent;
Debug.Log(info); Debug.Log(info);
if (info.Length > 0 &&string .IsNullOrWhiteSpace(info)) if (info.Length > 0 &&!string .IsNullOrWhiteSpace(info))
{ {
modelsInfo = Jsonanalyze.FromJson<List<ModelInfo>>(info); modelsInfo = Jsonanalyze.FromJson<List<ModelInfo>>(info);
for (int i = 0; i < modelsInfo.Count; i++) for (int i = 0; i < modelsInfo.Count; i++)