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_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 98.9, y: 10.4}
|
||||
m_SizeDelta: {x: 267, y: 74}
|
||||
m_AnchoredPosition: {x: 98.1, y: 21}
|
||||
m_SizeDelta: {x: 269, y: 85}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1750993385045414421
|
||||
CanvasRenderer:
|
||||
|
|
|
@ -26,19 +26,22 @@ public class CityPanel : MonoBehaviour
|
|||
{
|
||||
if (isok)
|
||||
{
|
||||
Debug.Log(result);
|
||||
JsonData data = JsonMapper.ToObject(result);
|
||||
var tmp = data["data"];
|
||||
foreach (JsonData item in tmp)
|
||||
{
|
||||
v_model_version v= JsonMapper.ToObject<v_model_version>(item.ToJson());
|
||||
if (ModelItem.modelItemPrefb == null)
|
||||
{
|
||||
ModelItem.modelItemPrefb = Resources.Load<GameObject>("prefeb/modelItem");
|
||||
}
|
||||
GameObject go = Instantiate<GameObject>(ModelItem.modelItemPrefb, transform);
|
||||
go.GetComponent<ModelItem>().Init(v,GetComponent<RectTransform>());
|
||||
}
|
||||
Application.ExternalCall("ClickCustom",result);
|
||||
Debug.Log("调前端进入关区"+ custCodes);
|
||||
|
||||
//生成企业模型
|
||||
//JsonData data = JsonMapper.ToObject(result);
|
||||
//var tmp = data["data"];
|
||||
//foreach (JsonData item in tmp)
|
||||
//{
|
||||
// v_model_version v= JsonMapper.ToObject<v_model_version>(item.ToJson());
|
||||
// if (ModelItem.modelItemPrefb == null)
|
||||
// {
|
||||
// ModelItem.modelItemPrefb = Resources.Load<GameObject>("prefeb/modelItem");
|
||||
// }
|
||||
// GameObject go = Instantiate<GameObject>(ModelItem.modelItemPrefb, transform);
|
||||
// go.GetComponent<ModelItem>().Init(v,GetComponent<RectTransform>());
|
||||
//}
|
||||
|
||||
}
|
||||
else
|
||||
|
|
|
@ -67,6 +67,8 @@ public class FirstPanel : MonoBehaviour
|
|||
{
|
||||
a.SetNoChoseState();
|
||||
});
|
||||
Application.ExternalCall("ClickCustom", "");
|
||||
Debug.Log("调前端回到首页");
|
||||
});
|
||||
|
||||
//初始化
|
||||
|
|
Loading…
Reference in New Issue