private void LevelUP(byte distance)
    {
        CHeroLevelUpSpeed clus = new CHeroLevelUpSpeed();

        clus.levelnum = distance;
        clus.herokey  = (int)objc.GetGuid().GUID_value;
        IOControler.GetInstance().SendProtocol(clus);
        isBanInput = true;//禁止输入
    }
Example #2
0
    protected virtual void OnClickUpOne()
    {
        if (!GetResEnough())
        {
            InterfaceControler.GetInst().AddMsgBox("升级材料不足");
            return;
        }

        if (ObjectSelf.GetInstance().Level <= m_HeroData.Level)
        {
            InterfaceControler.GetInst().AddMsgBox("玩家等级不足");
            return;
        }


        CHeroLevelUpSpeed proto = new CHeroLevelUpSpeed();

        proto.herokey  = ( int )HeroStrengthen.Inst.m_CurCard.GetGuid().GUID_value;
        proto.levelnum = 1;

        IOControler.GetInstance().SendProtocol(proto);
    }