示例#1
0
        private void OnMsg_GetSummSkinList(MobaMessage msg)
        {
            SkinPanel componentInChildren = this.tranSkinParent.gameObject.GetComponentInChildren <SkinPanel>();

            if (componentInChildren != null && !string.IsNullOrEmpty(this.heroNPC))
            {
                componentInChildren.RefreshUISkinPanel(this.heroNPC);
                componentInChildren.ReFreshPrice(this.heroID, this.skinID);
            }
            SkinPanel.IsWearSkin(this.heroID, this.skinID);
        }
示例#2
0
 private void OnSkinChanged(int id)
 {
     if (id != this.skinID)
     {
         SkinPanel componentInChildren = this.tranSkinParent.gameObject.GetComponentInChildren <SkinPanel>();
         MobaMessageManagerTools.SendClientMsg(ClientV2C.propviewChangeSkin, id, false);
         this.skinID = id;
         componentInChildren.SetWearBtnState(this.heroID, this.skinID);
         componentInChildren.SetBuyBtnState(this.skinID);
         componentInChildren.ReFreshPrice(this.heroID, this.skinID);
     }
 }