コード例 #1
0
 public void init(GoddessUnitWindow win, Card selectCard, string index)
 {
     card = selectCard;
     winn = win as GoddessUnitWindow;
     if (card == null)
     {
         lvLabel.gameObject.SetActive(false);
         icon.gameObject.SetActive(false);
         EmptyIcon.gameObject.SetActive(true);
         if (index != "")
         {
             ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.GODDESS_EMTY + index + "_e", EmptyIcon);
         }
         iconBg.gameObject.SetActive(true);
         iconBg.spriteName = "IconBack";
     }
     else
     {
         lvLabel.gameObject.SetActive(true);
         icon.gameObject.SetActive(true);
         iconBg.gameObject.SetActive(true);
         EmptyIcon.gameObject.SetActive(false);
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.GODDESS_HEAD2 + card.getImageID() + "_h", icon);
         iconBg.spriteName = QualityManagerment.qualityIDToIconSpriteName(card.getQualityId());
         lvLabel.text      = "Lv." + card.getLevel() + "/" + card.getMaxLevel();
     }
 }
コード例 #2
0
 /**女神的UID或Sid */
 /*method */
 /// <summary>
 /// 更新每条的详细信息
 /// </summary>
 /// <param name="be">Be.</param>
 public void updateItem(Card be, GoddessUnitWindow win)
 {
     winn     = win;
     selectBe = be;
     if (be != null)
     {
         ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.NVSHENHEADPATH + be.getImageID() + "_head", goddessHead);
         goddessName.text = be.getName();
         goodessLv.text   = "Lv:" + be.getLevel().ToString();
     }
 }
コード例 #3
0
 public void init(GoddessUnitWindow win)
 {
     winn = win;
 }