123456789101112131415161718192021222324252627282930 |
- using UnityEngine;
- using System.Collections;
- public class AssetSystem_Log : MonoSingleton<AssetSystem_Log> {
- int maxLine = 20;
- int curtLine = 0;
- public void Log(string logStr)
- {
- curtLine += 1 ;
- if (curtLine >= maxLine)
- {
- LogClear();
- }
- LogHelper.Log(logStr);
- AssetUI_ShowLog.Instance.logString += logStr+"\n";
- }
- public void LogClear()
- {
- curtLine = 0;
- AssetUI_ShowLog.Instance.logString = "";
- }
- public void LogError(string logStr)
- {
- LogHelper.LogError(logStr);
- }
- }
-
|