小游戏18bugxiugai

dev_chengFeng
2han9B1a0 2020-07-09 16:14:44 +08:00
parent 8e853b2758
commit 10a2181305
6 changed files with 8 additions and 13 deletions

View File

@ -505,6 +505,7 @@ SHOP_TYPE = {
TOP_MATCH_SHOP = 21, -- 巅峰赛商店
FINDFAIRY_GIFT=22, --寻仙限时礼包
BUYCOIN_SHOP=57, --点金商店
SOULBOX_SHOP=58, --宝囊限时商店
}
PropertyTypeIconDef = {

View File

@ -76,25 +76,19 @@ function this.Show()
cFront.transform:DORotate(Vector3.New(0, 0, 0), 0.3)
coroutine.wait(0.2)
--请求奖励
if this.gameParams[index] == -1 then
PopupTipPanel.ShowTip(Language[12186])
TrialMiniGameManager.EndGame()
else
TrialMiniGameManager.GameOperate(index, function(msg)
-- UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1, function()
-- canGetTime = msg.gameStatus
-- if canGetTime == 0 then
-- TrialMiniGameManager.EndGame()
-- end
-- end)
TrialMiniGameManager.GameOperate(index, function(msg)
if msg.resultId == -1 then
PopupTipPanel.ShowTip(Language[12186])
TrialMiniGameManager.EndGame()
else
local data = TrialMiniGameManager.IdToNameIconNum(msg.drop.itemlist[1].itemId,msg.drop.itemlist[1].itemNum)
PopupTipPanel.ShowColorTip(data[1],data[2],data[3])
canGetTime = msg.gameStatus
if canGetTime == 0 then
TrialMiniGameManager.EndGame()
end
end)
end
end
end)
end)
end)