Ejemplo n.º 1
0
 public void freshUI(MDV2HuaFei hf)
 {
     spHuaFeiNum.spriteName = "huafei_" + hf.huafei.ToString();
     for (int i = 0; i < 3; i++)
     {
         szHFCells[i].freshUI(hf.cid[i]);
     }
 }
Ejemplo n.º 2
0
    void FreshUI()
    {
        WGDataController dc = WGDataController.Instance;

        for (int i = 0; i < dc.szHuaFei.Count; i++)
        {
            MDV2HuaFei      hf = dc.szHuaFei[i];
            HuaFei_CellView hc = HuaFei_CellView.CreateHuaFeiView();
            SDK.AddChild(hc.gameObject, tsContent.gameObject);
            hc.transform.localPosition = new Vector3(0, 149 - i * 96, 0);
            hc.freshUI(hf);
        }
    }