12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using LitJson;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class UserSceneItem
- {
- //场景的扫描图
- public VufroiaTrigger vufroiaTrigger;
- //场景ID
- public string id;
- //场景名字
- public string name;
- //场景中的景点
- public Dictionary<string, SpotsItem> SpotsList = new Dictionary<string, SpotsItem>();
- GameObject _sceneModel;
- public GameObject SceneModel
- {
- get
- {
- if (_sceneModel == null)
- {
- _sceneModel = new GameObject(name);
- _sceneModel.transform.parent = null;//GameScene.Instance.transform;
- _sceneModel.transform.localPosition = Vector3.zero;
- _sceneModel.transform.localEulerAngles = Vector3.zero;
- }
- return _sceneModel;
- }
- }
- public void load()
- {
- Debug.Log("DGJ load ====> ");
- vufroiaTrigger.init();
- foreach (var v in SpotsList.Values)
- {
- v.VuforiaItem.SetActive(false);
- // v.show();
- }
-
- }
- public void Clear()
- {
- Debug.Log("Clear SpotsList");
- foreach (var v in SpotsList.Values)
- {
- v.Clear();
- // v.show();
- }
- // SpotsList.Clear();
- vufroiaTrigger.Clear();
- }
- //场景原始信息
- public string info;
- public string sentiment;
- public string updateTime;
- public string navLines;
- public string status;
- public string describe;
- public string image;
- public string map;
- public string sandTable;
- public string vuforiaXML;
- public string vuforiaDat;
- }
|