示例#1
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);
     }
 }
示例#2
0
        private void OnMsg_SkinWear(MobaMessage msg)
        {
            if (msg.Param == null || null == this.tranSkinParent)
            {
                return;
            }
            int num = (int)msg.Param;

            if (this.skinID == num)
            {
                SkinPanel componentInChildren = this.tranSkinParent.gameObject.GetComponentInChildren <SkinPanel>();
                SkinPanel.IsWearSkin(this.heroID, this.skinID);
                componentInChildren.SetWearBtnState(this.heroID, this.skinID);
            }
        }