修改加载模型逻辑
This commit is contained in:
parent
aa5d545d0b
commit
2d6bb93cd2
|
@ -251,5 +251,5 @@ MonoBehaviour:
|
|||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
modelname_text: {fileID: 0}
|
||||
modelname_text: {fileID: 3438159621284867111}
|
||||
isDragWRJ: 0
|
||||
|
|
|
@ -173,7 +173,7 @@ MonoBehaviour:
|
|||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
modelname_text: {fileID: 0}
|
||||
modelname_text: {fileID: 5970882835879795696}
|
||||
isDragWRJ: 0
|
||||
--- !u!1 &5970882835879795698
|
||||
GameObject:
|
||||
|
|
|
@ -177,7 +177,7 @@ MonoBehaviour:
|
|||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
modelname_text: {fileID: 0}
|
||||
modelname_text: {fileID: 3625114602127132433}
|
||||
isDragWRJ: 1
|
||||
--- !u!1 &3625114603613546360
|
||||
GameObject:
|
||||
|
|
|
@ -129,7 +129,7 @@ public class GameManager : MonoBehaviour
|
|||
{
|
||||
string info = UIBootstrap.Instance.currentSceneInfo.data.DeviceContent;
|
||||
Debug.Log(info);
|
||||
if (info.Length > 0 &&string .IsNullOrWhiteSpace(info))
|
||||
if (info.Length > 0 &&!string .IsNullOrWhiteSpace(info))
|
||||
{
|
||||
modelsInfo = Jsonanalyze.FromJson<List<ModelInfo>>(info);
|
||||
for (int i = 0; i < modelsInfo.Count; i++)
|
||||
|
|
Loading…
Reference in New Issue