示例#1
0
    void SetVipSpeedUp()
    {
        int vipLv = 0;

        PlayerManager playerMgr = Core.Data.playerManager;
        VipManager    vipMgr    = Core.Data.vipManager;

        if (playerMgr != null && vipMgr != null)
        {
            vipLv = playerMgr.RTData.curVipLevel;
            VipInfoData vipdata = vipMgr.GetVipInfoData(vipLv);
            if (vipdata != null)
            {
                OpenSpeedUp = vipdata.speedup == (short)1;
            }
            else
            {
                OpenSpeedUp = false;
            }
        }
    }
示例#2
0
    void SetVipAuto()
    {
        int vipLv = 0;

        PlayerManager playerMgr = Core.Data.playerManager;
        VipManager    vipMgr    = Core.Data.vipManager;

        if (playerMgr != null && vipMgr != null)
        {
            vipLv = playerMgr.RTData.curVipLevel;
            VipInfoData vipdata = vipMgr.GetVipInfoData(vipLv);
            if (vipdata != null)
            {
                isAutoBattle = true;                //vipdata.speedup == (short)1;
            }
            else
            {
                isAutoBattle = false;
            }
        }
    }