parent
c7a290e605
commit
b5ac787e16
|
@ -454,8 +454,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -6.0999756, y: -509.8}
|
||||
m_SizeDelta: {x: -428.2, y: 684.5}
|
||||
m_AnchoredPosition: {x: 0, y: -509.8}
|
||||
m_SizeDelta: {x: -300, y: 684.5}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1066462919
|
||||
MonoBehaviour:
|
||||
|
|
|
@ -120,7 +120,7 @@ end
|
|||
--添加事件监听(用于子类重写)
|
||||
function TrialMapPanel:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.TrialMap.OnPowerValueChanged, this.OnPowerValueChange)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Bag.OnTempBagChanged, this.OnTempBagChanged)
|
||||
-- Game.GlobalEvent:AddEvent(GameEvent.Bag.OnTempBagChanged, this.OnTempBagChanged)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.FoodBuff.OnFoodBuffStateChanged, this.InitBuffInfo)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Map.ShowEnemyInfo, this.ShowEnemyInfo)
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Map.RefreshHeroHp, this.SetSelectHero)
|
||||
|
@ -131,7 +131,7 @@ end
|
|||
--移除事件监听(用于子类重写)
|
||||
function TrialMapPanel:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.TrialMap.OnPowerValueChanged, this.OnPowerValueChange)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.OnTempBagChanged, this.OnTempBagChanged)
|
||||
-- Game.GlobalEvent:RemoveEvent(GameEvent.Bag.OnTempBagChanged, this.OnTempBagChanged)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.FoodBuff.OnFoodBuffStateChanged, this.InitBuffInfo)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Map.ShowEnemyInfo, this.ShowEnemyInfo)
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Map.RefreshHeroHp, this.SetSelectHero)
|
||||
|
@ -339,12 +339,12 @@ function this.InitTrialMission()
|
|||
|
||||
end
|
||||
|
||||
-- 刷新临时背包数据
|
||||
function this.OnTempBagChanged()
|
||||
if CarbonManager.difficulty == 2 then
|
||||
this.RefreshBombNum()
|
||||
end
|
||||
end
|
||||
-- -- 刷新临时背包数据
|
||||
-- function this.OnTempBagChanged()
|
||||
-- if CarbonManager.difficulty == 2 then
|
||||
-- this.RefreshBombNum()
|
||||
-- end
|
||||
-- end
|
||||
|
||||
-- 刷新砸炸弹、回春散数量
|
||||
function this.RefreshBombNum()
|
||||
|
|
|
@ -223,6 +223,7 @@ function QuickCommonPurchasePart:OnConfirmBtnClicked()
|
|||
end
|
||||
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP, purChaseTypeIdDef[self.context.type], self.buyCountValue, function()
|
||||
self.mainPanel:ClosePanel()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.OnTempBagChanged)
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue