예제 #1
0
        private void OpenBattleShop(EBattleShopType type, EBattleShopOpenType openType)
        {
            Units    player   = MapManager.Instance.GetPlayer();
            ShopInfo shopInfo = ModelManager.Instance.Get_BattleShop_shopInfo(type);
            string   text;

            if (BattleEquipTools_op.CanOpenBattleShop(player, shopInfo, openType, out text))
            {
                AudioMgr.PlayUI("Play_Shop_Open", null, false, false);
                MsgData_BattleShop_onOP param = new MsgData_BattleShop_onOP
                {
                    shopType = type
                };
                MobaMessageManagerTools.SendClientMsg(ClientC2C.BattleShop_onOP, param, false);
                CtrlManager.OpenWindow(WindowID.BattleEquipmentView, null);
            }
            else if (!string.IsNullOrEmpty(text))
            {
                Singleton <TipView> .Instance.ShowViewSetText(text, 1f);
            }
        }