示例#1
0
    void OnEnable()
    {
        RefreshstrengthenOk       = Refresh;
        RefreshGstrengthenOk      = Refresh;
        RefreshGstrengthenlevelOk = RefreshGstrengthenlevel;
        //Refresh (BabyData.babyReId);

        if (GamePlayer.Instance.babies_list_.Count != 0)
        {
            Refresh(MainbabyProperty.idss[0]);
            if (BabyData.babyReId != 0 && BabyData.intensifyLevel != 0)
            {
                RefreshGstrengthenlevels(BabyData.babyReId, BabyData.intensifyLevel);
            }

            HeadIconLoader.Instance.LoadIcon(ItemData.GetData(itemID()).icon_, icon);
            numLabel.text = BagSystem.instance.GetItemMaxNum((uint)itemID()) + "/" + itemCount().ToString();
        }
        else
        {
            ClearText();
        }
        if (GlobalValue.isBattleScene(StageMgr.Scene_name))
        {
            enterBtn.gameObject.SetActive(false);
        }
    }
示例#2
0
 void OnDisable()
 {
     RefreshstrengthenOk       = null;
     RefreshGstrengthenOk      = null;
     RefreshGstrengthenlevelOk = null;
 }