Update - 1.13.0.124
EN: 1.13.0.124 CN: 1.13.0.124 JP: 1.13.0.128 KR: 1.13.0.130
This commit is contained in:
@@ -25,6 +25,11 @@ function OptionSwitchCtrl:Init(callback, bOn)
|
||||
self._mapNode.btnSwitch[1].gameObject:SetActive(not self.bOn)
|
||||
self._mapNode.btnSwitch[2].gameObject:SetActive(self.bOn)
|
||||
end
|
||||
function OptionSwitchCtrl:SetOn(bOn)
|
||||
self.bOn = bOn
|
||||
self._mapNode.btnSwitch[1].gameObject:SetActive(not self.bOn)
|
||||
self._mapNode.btnSwitch[2].gameObject:SetActive(self.bOn)
|
||||
end
|
||||
function OptionSwitchCtrl:OnBtnClick_Switch(btn, nIndex)
|
||||
self.bOn = not self.bOn
|
||||
self.callback()
|
||||
|
||||
Reference in New Issue
Block a user