38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
LuaShowCheckTips = {}
|
|
|
|
function LuaShowCheckTips:Start()
|
|
tipText:GetComponent("Text").text = CS.GCGame.Table.StrDictionary.GetClientDictionaryString("#{99998}");
|
|
winText:GetComponent("Text").text = CS.GCGame.Table.StrDictionary.GetClientDictionaryString("#{99999}");
|
|
btnShow:GetComponent("Button").onClick:AddListener(LuaShowCheckTips.ShowTipWin)
|
|
btnBack:GetComponent("Button").onClick:AddListener(LuaShowCheckTips.HideTipWin)
|
|
btnClose:GetComponent("Button").onClick:AddListener(LuaShowCheckTips.HideTipWin)
|
|
btnStart:GetComponent("Button").onClick:AddListener(LuaShowCheckTips.StartWithCheck)
|
|
end
|
|
|
|
function LuaShowCheckTips:Update()
|
|
|
|
if toggleTip:GetComponent("Toggle").isOn then
|
|
btnStart:SetActive(false)
|
|
else
|
|
btnStart:SetActive(true)
|
|
end
|
|
|
|
end
|
|
|
|
function LuaShowCheckTips:ShowTipWin()
|
|
tipWin:SetActive(true)
|
|
end
|
|
|
|
function LuaShowCheckTips:HideTipWin()
|
|
tipWin:SetActive(false);
|
|
end
|
|
|
|
function LuaShowCheckTips:TriggetTip(isTrig)
|
|
tipWin:SetActive(true);
|
|
end
|
|
|
|
function LuaShowCheckTips:StartWithCheck(isTrig)
|
|
tipWin:SetActive(true);
|
|
toggleTip:GetComponent("Toggle").isOn = false
|
|
end
|