ddwfwfwef
This commit is contained in:
parent
520d9cb2b3
commit
5f22fb3735
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
@ -339,8 +339,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 98.9, y: 10.4}
|
m_AnchoredPosition: {x: 98.1, y: 21}
|
||||||
m_SizeDelta: {x: 267, y: 74}
|
m_SizeDelta: {x: 269, y: 85}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1750993385045414421
|
--- !u!222 &1750993385045414421
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|
|
@ -26,19 +26,22 @@ public class CityPanel : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (isok)
|
if (isok)
|
||||||
{
|
{
|
||||||
Debug.Log(result);
|
Application.ExternalCall("ClickCustom",result);
|
||||||
JsonData data = JsonMapper.ToObject(result);
|
Debug.Log("调前端进入关区"+ custCodes);
|
||||||
var tmp = data["data"];
|
|
||||||
foreach (JsonData item in tmp)
|
//生成企业模型
|
||||||
{
|
//JsonData data = JsonMapper.ToObject(result);
|
||||||
v_model_version v= JsonMapper.ToObject<v_model_version>(item.ToJson());
|
//var tmp = data["data"];
|
||||||
if (ModelItem.modelItemPrefb == null)
|
//foreach (JsonData item in tmp)
|
||||||
{
|
//{
|
||||||
ModelItem.modelItemPrefb = Resources.Load<GameObject>("prefeb/modelItem");
|
// v_model_version v= JsonMapper.ToObject<v_model_version>(item.ToJson());
|
||||||
}
|
// if (ModelItem.modelItemPrefb == null)
|
||||||
GameObject go = Instantiate<GameObject>(ModelItem.modelItemPrefb, transform);
|
// {
|
||||||
go.GetComponent<ModelItem>().Init(v,GetComponent<RectTransform>());
|
// ModelItem.modelItemPrefb = Resources.Load<GameObject>("prefeb/modelItem");
|
||||||
}
|
// }
|
||||||
|
// GameObject go = Instantiate<GameObject>(ModelItem.modelItemPrefb, transform);
|
||||||
|
// go.GetComponent<ModelItem>().Init(v,GetComponent<RectTransform>());
|
||||||
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -67,6 +67,8 @@ public class FirstPanel : MonoBehaviour
|
||||||
{
|
{
|
||||||
a.SetNoChoseState();
|
a.SetNoChoseState();
|
||||||
});
|
});
|
||||||
|
Application.ExternalCall("ClickCustom", "");
|
||||||
|
Debug.Log("调前端回到首页");
|
||||||
});
|
});
|
||||||
|
|
||||||
//初始化
|
//初始化
|
||||||
|
|
Loading…
Reference in New Issue