逍遥commit
parent
911bacc56c
commit
56898d9c26
|
|
@ -30,6 +30,7 @@ function this:BindEvent()
|
|||
if BagManager.GetItemCountById(itemId) > 0 then
|
||||
ShopManager.RequestBuyShopItem(7, 10033, count, function()
|
||||
PopupTipPanel.ShowTip("恢复50点云游值!")
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.XiaoYao.RefreshEventShow)
|
||||
parent:ClosePanel()
|
||||
end)
|
||||
else
|
||||
|
|
|
|||
|
|
@ -153,10 +153,6 @@ function XiaoYaoLuckyBossPopup:SetSingleMonster(go,data)
|
|||
XiaoYaoManager.fightBossIndex = curMonsterGroup.monsterIndex
|
||||
this.selectKuang.transform:SetParent(go.transform)
|
||||
this.selectKuang:GetComponent("RectTransform").localPosition = Vector3.zero
|
||||
if _LiveNode then
|
||||
poolManager:UnLoadLive(_LiveName, _LiveNode)
|
||||
_LiveNode = nil
|
||||
end
|
||||
this:SetSelectHero(data)
|
||||
end
|
||||
end)
|
||||
|
|
@ -170,6 +166,10 @@ function XiaoYaoLuckyBossPopup:SetSelectHero(monsterData)
|
|||
local pos = heroConfig[monsterId].Position
|
||||
|
||||
_LiveName = ArtConfig[paintingId].Name
|
||||
if _LiveNode then
|
||||
poolManager:UnLoadLive(_LiveName, _LiveNode)
|
||||
_LiveNode = nil
|
||||
end
|
||||
_LiveNode = poolManager:LoadLive(_LiveName, this.e_liveRoot.transform, Vector3.one * heroConfig[monsterId].Scale*0.7, Vector3.New(pos[1], pos[2], 0))
|
||||
this.e_level.text = "lv.".. _data.Level
|
||||
this.e_name.text = _data.ReadingName
|
||||
|
|
|
|||
Loading…
Reference in New Issue