public void SetCurrentPercent () { if (UIProgressBar.current != null) text = Mathf.RoundToInt(UIProgressBar.current.value * 100f) + "%"; }
static int SetCurrentPercent(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); UILabel obj = (UILabel)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UILabel"); obj.SetCurrentPercent(); return(0); }