예제 #1
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);
        }
    }
예제 #2
0
    public static HuaFei_CellView CreateHuaFeiView()
    {
        Object obj = Resources.Load("pbHuaFei_CellView");

        if (obj != null)
        {
            GameObject      go = Instantiate(obj) as GameObject;
            HuaFei_CellView hf = go.GetComponent <HuaFei_CellView>();
            hf.InitView();
            return(hf);
        }
        return(null);
    }