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; } } }
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; } } }