Пример #1
0
    void InitPrizes()
    {
        Transform tf = transform.FindChild("Changeables").FindChild("Prizes");

        tf.gameObject.SetActive(true);
        UtilMgr.ClearList(tf.FindChild("Draggable"));

        tf.FindChild("Draggable").GetComponent <UIDraggablePanel2>().Init(
            mRewardEvent.Response.data.Count, delegate(UIListItem item, int index) {
            item.Target.transform.FindChild("LblLeft").GetComponent <UILabel>().text
                = mRewardEvent.Response.data[index].rank
                  + UtilMgr.GetOrderString(mRewardEvent.Response.data[index].rank);
            item.Target.transform.FindChild("LblRight").GetComponent <UILabel>().text
                = mRewardEvent.Response.data[index].gold + "G";
        });
    }