Exemplo n.º 1
0
    void ShowAchievementPortraits(PortraitPartType portraitPartType)
    {
        List <int> portraits = UserM.GetAchievementPortraits(portraitPartType);

        for (int i = 0; i < portraits.Count; i++)
        {
            GameObject go       = NDLoad.LoadWndItem("HeadItem", mAttachRoot[(int)PortratiType.Achivement].transform);
            HeadItem   headItem = go.GetComponent <HeadItem>();
            headItem.Init(this);
            headItem.ShowPortrait(portraitPartType, portraits[i]);
            mHeadItem.Add(headItem);
        }
        mAttachRoot[(int)PortratiType.Achivement].Reposition();
    }