|
@@ -122,6 +122,7 @@ public class GCZLLayer : MonoBehaviour
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
|
|
+ var objType = GlobalData.layerUnitDatas[i].type;
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
obj.transform.SetParent(informationContent);
|
|
obj.transform.SetParent(informationContent);
|
|
obj.transform.Find("Name").GetComponentInChildren<Text>().text = realName;
|
|
obj.transform.Find("Name").GetComponentInChildren<Text>().text = realName;
|
|
@@ -139,8 +140,15 @@ public class GCZLLayer : MonoBehaviour
|
|
|
|
|
|
currentData = GlobalData.layerUnitDatas[dataIndex];
|
|
currentData = GlobalData.layerUnitDatas[dataIndex];
|
|
StaticLod.instance.OnFoucusStatic(priName);
|
|
StaticLod.instance.OnFoucusStatic(priName);
|
|
|
|
+ if (objType == LayerUnitType.ZZ|| objType==LayerUnitType.BZ)
|
|
|
|
+ {
|
|
|
|
+ Info_DetailButton.gameObject.SetActive(true);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ Info_DetailButton.gameObject.SetActive(false);
|
|
|
|
+ }
|
|
ShowInfoPanelData();
|
|
ShowInfoPanelData();
|
|
-
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -153,6 +161,7 @@ public class GCZLLayer : MonoBehaviour
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
GameObject obj = Instantiate(informationPrefab);
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
string realName = GlobalData.layerUnitDatas[i].name;
|
|
string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
string priName = GlobalData.layerUnitDatas[i].name_pri;
|
|
|
|
+ var objType = GlobalData.layerUnitDatas[i].type;
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
string className = GlobalData.layerUnitDatas[i].GetTypeName();
|
|
obj.transform.SetParent(informationContent);
|
|
obj.transform.SetParent(informationContent);
|
|
obj.transform.Find("Name").GetComponentInChildren<Text>().text = realName;
|
|
obj.transform.Find("Name").GetComponentInChildren<Text>().text = realName;
|
|
@@ -168,6 +177,14 @@ public class GCZLLayer : MonoBehaviour
|
|
{
|
|
{
|
|
currentData = GlobalData.layerUnitDatas[dataIndex];
|
|
currentData = GlobalData.layerUnitDatas[dataIndex];
|
|
StaticLod.instance.OnFoucusStatic(priName);
|
|
StaticLod.instance.OnFoucusStatic(priName);
|
|
|
|
+ if (objType == LayerUnitType.ZZ|| objType==LayerUnitType.BZ)
|
|
|
|
+ {
|
|
|
|
+ Info_DetailButton.gameObject.SetActive(true);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ Info_DetailButton.gameObject.SetActive(false);
|
|
|
|
+ }
|
|
ShowInfoPanelData();
|
|
ShowInfoPanelData();
|
|
});
|
|
});
|
|
}
|
|
}
|