コード例 #1
0
        private void OnClick_ownShop(GameObject obj)
        {
            this.handlingRItem = null;
            EBattleShopType nearestShopType = BattleEquipTools_op.GetNearestShopType();

            MobaMessageManagerTools.BattleShop_openBattleShop(nearestShopType, EBattleShopOpenType.eFromButton);
        }
コード例 #2
0
 private void OnClick_recommendItem(BattleEquip_recommendItem com)
 {
     if (this.showDetail)
     {
         this.handlingRItem = com.RecommendItem;
     }
     MobaMessageManagerTools.SendClientMsg(ClientV2C.BattleShop_clickRItem, com.RecommendItem, false);
     NewbieManager.Instance.TryTriggerBuyEquipHint();
 }
コード例 #3
0
 private void OnMsg_DetailedShopToggle(MobaMessage msg)
 {
     this.showDetail = (bool)msg.Param;
     this.RefreshUI_detailShop();
     this.RefreshUI_money();
     if (this.showDetail)
     {
         this.RefreshUI_initAttriList();
         this.LoadHeroAttriMain();
     }
     else
     {
         this.handlingRItem = null;
     }
 }
コード例 #4
0
        private void InitData()
        {
            this.curPosseessItem = ModelManager.Instance.Get_BattleShop_curPItem();
            this.curShopItem     = ModelManager.Instance.Get_BattleShop_curSItem();
            this.tItem           = ModelManager.Instance.Get_BattleShop_curTItem();
            this.wallet          = ModelManager.Instance.Get_BattleShop_money();
            this.playerAlive     = ModelManager.Instance.Get_BattleShop_playerAlive();
            ShopInfo shopInfo = ModelManager.Instance.Get_BattleShop_openShop();

            this.brawlCanBuy = ModelManager.Instance.Get_BattleShop_brawlCanBuy();
            if (shopInfo != null)
            {
                this.withDistance = shopInfo.InArea;
                this.dealCounter  = shopInfo.DealCounter;
                this.shopState    = shopInfo.State;
            }
        }
コード例 #5
0
 private void OnMsg_BattleShop_TItemChanged(MobaMessage msg)
 {
     this.tItem = (IBEItem)msg.Param;
     this.RefreshUI_tip();
 }
コード例 #6
0
 private void Awake()
 {
     this.item = null;
 }