Files
JJBB/Assets/Project/Script/LuaScripts/UI/Lua/PropBaseAttr/ReplaceTheBrackets.txt

17 lines
483 B
Plaintext
Raw Normal View History

2024-08-23 15:49:34 +08:00
require("LuaUtil")
require("Util")
ReplaceTheBrackets = {}
local _isShowTime = 0
local myOneself
function ReplaceTheBrackets.Awake()
myOneself = _myOneself:GetComponent("Text")
end
function ReplaceTheBrackets.Update()
_isShowTime = _isShowTime + CS.UnityEngine.Time.deltaTime
if _isShowTime >= 0.5 then
local newStr1 = string.gsub(myOneself.text, "%", "(")
local newStr2 = string.gsub(newStr1, "%", ")")
myOneself.text = newStr2
end
end