Пример #1
0
 private void OnBtnYesHandler()
 {
     SoundManager.Instance.Play(15);
     if (ItemManager.GetItemType((uint)mParam.itemid) == ItemType.Defence)
     {
         DefenceModule module = ModuleManager.Instance.FindModule <DefenceModule>();
         if (null == module)
         {
             return;
         }
         DefenceUIParam param = new DefenceUIParam();
         param.itemid   = mParam.itemid;
         param.packpos  = mParam.packpos;
         param.packtype = mParam.packtype;
         module.SaleDefence(param);
     }
     else
     {
         ItemSaleActionParam param = new ItemSaleActionParam();
         param.itemcount = mParam.mSaleNum;
         param.itemid    = mParam.itemid;
         param.isSaleAll = mParam.isSaleAll;
         Net.Instance.DoAction((int)Message.MESSAGE_ID.ID_MSG_ITEM_SALE, param);
     }
 }
Пример #2
0
    private void OnBtnCombHandler()
    {
        DefenceModule module = ModuleManager.Instance.FindModule <DefenceModule>();

        if (null == module)
        {
            return;
        }
        mParam.isequiped = false;
        module.StoneComb(mParam);
    }