|
|
@@ -18,6 +18,31 @@ function ShowDialogConfirm(tips, confirmFunction, cancelFunction)
|
|
|
require(uiControllerPath).SetInfo(tips, confirmFunction, cancelFunction)
|
|
|
end
|
|
|
|
|
|
+function Debug(...)
|
|
|
+ CS.UnityEngine.Debug.Log(...)
|
|
|
+end
|
|
|
+
|
|
|
+function Debugf(format, ...)
|
|
|
+ CS.UnityEngine.Debug.Log(string.format(format, ...))
|
|
|
+end
|
|
|
+
|
|
|
+function Warn(...)
|
|
|
+ CS.UnityEngine.Debug.LogWarning(...)
|
|
|
+end
|
|
|
+
|
|
|
+function Warnf(format, ...)
|
|
|
+ CS.UnityEngine.Debug.LogWarning(string.format(format, ...))
|
|
|
+end
|
|
|
+
|
|
|
+function LoadResource(resPath)
|
|
|
+ --Warnf("---- ----> isEditor: %s Path: %s", tostring(CS.UnityEngine.Application.isEditor), resPath)
|
|
|
+ if CS.UnityEngine.Application.isEditor == true then
|
|
|
+ return CS.SFramework.SResourceManagerE.LoadResource(resPath)
|
|
|
+ else
|
|
|
+ return CS.SFramework.SResourceManagerR.LoadResource(resPath)
|
|
|
+ end
|
|
|
+end
|
|
|
+
|
|
|
local function __TRACKBACK__(szErrorMsg)
|
|
|
local szTrackText = debug.traceback(tostring(szErrorMsg), 6);
|
|
|
print("---------------------------------------- TRACKBACK ----------------------------------------");
|