|
@@ -87,11 +87,11 @@ public class GCZLLayer : MonoBehaviour
|
|
|
Info_DetailButton.onClick.AddListener(() =>
|
|
|
{
|
|
|
DetailTitleText.text = currentData.name;
|
|
|
- zhaMenIconContent.SetActive(currentData.name_pri.Equals("BuYuan"));
|
|
|
- OpenAniButton.gameObject.SetActive(currentData.name_pri.Equals("BuYuan") ||
|
|
|
- currentData.name_pri.Equals("TaoKou"));
|
|
|
- CloseAniButton.gameObject.SetActive(currentData.name_pri.Equals("BuYuan") ||
|
|
|
- currentData.name_pri.Equals("TaoKou"));
|
|
|
+ zhaMenIconContent.SetActive(currentData.namePri.Equals("BuYuan"));
|
|
|
+ OpenAniButton.gameObject.SetActive(currentData.namePri.Equals("BuYuan") ||
|
|
|
+ currentData.namePri.Equals("TaoKou"));
|
|
|
+ CloseAniButton.gameObject.SetActive(currentData.namePri.Equals("BuYuan") ||
|
|
|
+ currentData.namePri.Equals("TaoKou"));
|
|
|
ModelCameraCtrl._Instance.SetCameraActive(true);
|
|
|
ResetDetailPanel();
|
|
|
DetailPanel.SetActive(true);
|
|
@@ -161,7 +161,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
OpenAniButton.onClick.AddListener(() =>
|
|
|
{
|
|
|
float[] openValues=new float[1];
|
|
|
- if (currentData.name_pri.Equals("BuYuan"))
|
|
|
+ if (currentData.namePri.Equals("BuYuan"))
|
|
|
{
|
|
|
openValues=new float[GlobalData.buYuanSensorData.data.Count];
|
|
|
for (int i = 0; i < openValues.Length; i++)
|
|
@@ -169,7 +169,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
openValues[i] = GlobalData.buYuanSensorData.data[i].gate_open ? 1.0f : 0.0f;
|
|
|
}
|
|
|
}
|
|
|
- if (currentData.name_pri.Equals("TaoKou"))
|
|
|
+ if (currentData.namePri.Equals("TaoKou"))
|
|
|
{
|
|
|
openValues=new float[GlobalData.taoKouSensorData.data.Count];
|
|
|
for (int i = 0; i < openValues.Length; i++)
|
|
@@ -241,11 +241,11 @@ public class GCZLLayer : MonoBehaviour
|
|
|
{
|
|
|
for (int i = 0; i < GlobalData.layerUnitDatas.Count; i++)
|
|
|
{
|
|
|
- if (GlobalData.layerUnitDatas[i].special)
|
|
|
+ if (GlobalData.layerUnitDatas[i].special == "1")
|
|
|
{
|
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
|
- string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
|
+ string priName = GlobalData.layerUnitDatas[i].namePri;
|
|
|
var objType = GlobalData.layerUnitDatas[i].type;
|
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
|
obj.transform.SetParent(informationContent);
|
|
@@ -286,7 +286,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
{
|
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
|
- string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
|
+ string priName = GlobalData.layerUnitDatas[i].namePri;
|
|
|
var objType = GlobalData.layerUnitDatas[i].type;
|
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
|
obj.transform.SetParent(informationContent);
|
|
@@ -330,7 +330,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
{
|
|
|
InfoTitleText.text = currentData.name;
|
|
|
InfoClassText.text = currentData.GetTypeName();
|
|
|
- InfoFM.texture = TextureLoadHelp._Instance.GetTempTexture(currentData.name_pri);
|
|
|
+ InfoFM.texture = TextureLoadHelp._Instance.GetTempTexture(currentData.namePri);
|
|
|
//todo
|
|
|
InfoNoText.text = "未知";
|
|
|
InfoDayText.text = "近期";
|
|
@@ -361,12 +361,12 @@ public class GCZLLayer : MonoBehaviour
|
|
|
lastPhotoButton.gameObject.SetActive(false);
|
|
|
nextPhotoButton.gameObject.SetActive(false);
|
|
|
|
|
|
- zhaMenIconContent.SetActive(currentData.name_pri.Equals("BuYuan"));
|
|
|
+ zhaMenIconContent.SetActive(currentData.namePri.Equals("BuYuan"));
|
|
|
|
|
|
- OpenAniButton.gameObject.SetActive(currentData.name_pri.Equals("BuYuan") ||
|
|
|
- currentData.name_pri.Equals("TaoKou"));
|
|
|
- CloseAniButton.gameObject.SetActive(currentData.name_pri.Equals("BuYuan") ||
|
|
|
- currentData.name_pri.Equals("TaoKou"));
|
|
|
+ OpenAniButton.gameObject.SetActive(currentData.namePri.Equals("BuYuan") ||
|
|
|
+ currentData.namePri.Equals("TaoKou"));
|
|
|
+ CloseAniButton.gameObject.SetActive(currentData.namePri.Equals("BuYuan") ||
|
|
|
+ currentData.namePri.Equals("TaoKou"));
|
|
|
downloadPdfButton.gameObject.SetActive(false);
|
|
|
break;
|
|
|
case 1:
|
|
@@ -420,7 +420,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
|
|
|
public void ChangePhoto(int moveIndex)
|
|
|
{
|
|
|
- if (currentData.name_pri.Equals("BuYuan"))
|
|
|
+ if (currentData.namePri.Equals("BuYuan"))
|
|
|
{
|
|
|
switch (moveIndex)
|
|
|
{
|
|
@@ -444,7 +444,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- if (currentData.name_pri.Equals("TaoKou"))
|
|
|
+ if (currentData.namePri.Equals("TaoKou"))
|
|
|
{
|
|
|
switch (moveIndex)
|
|
|
{
|
|
@@ -473,7 +473,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
|
|
|
public void ChangePDF(int moveIndex)
|
|
|
{
|
|
|
- if (currentData.name_pri.Equals("BuYuan"))
|
|
|
+ if (currentData.namePri.Equals("BuYuan"))
|
|
|
{
|
|
|
switch (moveIndex)
|
|
|
{
|
|
@@ -498,7 +498,7 @@ public class GCZLLayer : MonoBehaviour
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- if (currentData.name_pri.Equals("TaoKou"))
|
|
|
+ if (currentData.namePri.Equals("TaoKou"))
|
|
|
{
|
|
|
switch (moveIndex)
|
|
|
{
|
|
@@ -527,14 +527,14 @@ public class GCZLLayer : MonoBehaviour
|
|
|
|
|
|
public void DownLoadPDF()
|
|
|
{
|
|
|
- if (currentData.name_pri.Equals("BuYuan"))
|
|
|
+ if (currentData.namePri.Equals("BuYuan"))
|
|
|
{
|
|
|
for (int i = 0; i < BY_PdfDownloadUrl.Length; i++)
|
|
|
{
|
|
|
OpenNewWebsite(BY_PdfDownloadUrl[i]);
|
|
|
}
|
|
|
}
|
|
|
- if (currentData.name_pri.Equals("TaoKou"))
|
|
|
+ if (currentData.namePri.Equals("TaoKou"))
|
|
|
{
|
|
|
for (int i = 0; i < TK_PdfDownloadUrl.Length; i++)
|
|
|
{
|