添加容错
parent
e019ef8f22
commit
f449016952
|
@ -59,7 +59,10 @@ end
|
||||||
function this.SetPanel()
|
function this.SetPanel()
|
||||||
this.TimeCountDown(ShopManager.CountShopRefreshLeftTime(SHOP_TYPE.BUYCOIN_SHOP))
|
this.TimeCountDown(ShopManager.CountShopRefreshLeftTime(SHOP_TYPE.BUYCOIN_SHOP))
|
||||||
local levelConfig = ConfigManager.GetConfigDataByKey(ConfigName.PlayerLevelConfig,"PlayerLv",PlayerManager.level)
|
local levelConfig = ConfigManager.GetConfigDataByKey(ConfigName.PlayerLevelConfig,"PlayerLv",PlayerManager.level)
|
||||||
local levelNums = {levelConfig.GoldExtraNum1,levelConfig.GoldExtraNum2,levelConfig.GoldExtraNum3}
|
local levelNums = {0,0,0}
|
||||||
|
if levelConfig then
|
||||||
|
levelNums = {levelConfig.GoldExtraNum1,levelConfig.GoldExtraNum2,levelConfig.GoldExtraNum3}
|
||||||
|
end
|
||||||
for i = 1, #panels do
|
for i = 1, #panels do
|
||||||
local o=panels[i]
|
local o=panels[i]
|
||||||
local coinNum=Util.GetGameObject(o,"Coin/Num"):GetComponent("Text")
|
local coinNum=Util.GetGameObject(o,"Coin/Num"):GetComponent("Text")
|
||||||
|
|
Loading…
Reference in New Issue