Exemple #1
0
 /// <summary>
 /// 用于构造觉醒前、后图标 暂时只有星星颜色和头像切换
 /// </summary>
 public void SetItemAwakenData(LTPartnerData itemData, string icon, int star, int awakenLevel)
 {
     isNeedRefreshEvent = false;
     SetItemData(itemData, false);
     SelectSprite.gameObject.CustomSetActive(false);
     IconSprite.spriteName = icon;
     StarController.SetStarAlpha(star, awakenLevel);
 }
Exemple #2
0
 /// <summary>
 /// 设置觉醒前后星星显示
 /// </summary>
 /// <param name="isawaken"></param>
 private void SetPartnerStar(int awakenLevel)
 {
     for (int i = 0; i < StarList.StarObjList.Length; i++)
     {
         if (i < curpartnerData.Star)
         {
             StarList.StarObjList[i].CustomSetActive(true);
         }
         else
         {
             StarList.StarObjList[i].CustomSetActive(false);
         }
     }
     StarList.SetStarAlpha(curpartnerData.Star, awakenLevel);
     StarList.mDMono.GetComponent <UIGrid>().Reposition();
 }