刷冲特权修改,战斗三倍速修改
parent
de4deae3ad
commit
97036e465d
|
@ -436,9 +436,9 @@ end
|
|||
function this.SwitchTimeScale()
|
||||
local _scale = math.floor(BattleManager.GetTimeScale())
|
||||
--如果之前是三倍速,强制转成二倍速
|
||||
if _scale==3 then
|
||||
if _scale==2 then
|
||||
BattleManager.SetTimeScale(BATTLE_TIME_SCALE_TWO)
|
||||
_scale=2
|
||||
_scale=3
|
||||
end
|
||||
this.TimeScaleTxt.text = _scale
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ function GMShuaChongTeQuan:InitComponent()
|
|||
end
|
||||
else
|
||||
self.hintTxt.gameObject:SetActive(false)
|
||||
self.btn_buy:SetActive(true)
|
||||
end
|
||||
Util.AddOnceClick(self.btn_buy,function()
|
||||
if state==0 then
|
||||
|
@ -152,9 +153,9 @@ function GMShuaChongTeQuan:SingleDataShow(item,data,lv)
|
|||
end
|
||||
end
|
||||
if privilege.IfFloat==2 then
|
||||
num=num/10000 .."%"
|
||||
num=num/100 .."%"
|
||||
end
|
||||
LogError("lv=============================="..lv)
|
||||
|
||||
if privilege.Type==1 then
|
||||
item:GetComponent("Text").text =string.format(privilege.Name,num)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue