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