private void DoRollback(MsgData_BattleShop_rollback rollbackInfo) { ShopInfo shopInfo = null; string text = null; if (rollbackInfo == null || rollbackInfo.curShop == null) { text = BattleEquipTools_config.Notice_outOfShoppingArea; } else { shopInfo = rollbackInfo.curShop; EBattleShopState state = shopInfo.State; if (state != EBattleShopState.eIdle) { text = BattleEquipTools_config.Notice_ShopBusy; } } if (string.IsNullOrEmpty(text)) { MsgData_BattleShop_onOP param = new MsgData_BattleShop_onOP { op = EBattleShopOP.eRevert, shopType = shopInfo.ShopType }; MobaMessageManagerTools.SendClientMsg(ClientC2C.BattleShop_onOP, param, false); if (BattleEquipTools_op.IsOnLineBattle()) { BattleEquipTools_op.DoPvpRollback(); } else { Units player = MapManager.Instance.GetPlayer(); BattleEquipTools_op.DoPveRollback(shopInfo, player); } } else if (!text.Equals(BattleEquipTools_config.Notice_ShopBusy)) { Singleton <TipView> .Instance.ShowViewSetText(text, 1f); } }