//private List<LogMessage> mShowList = new List<LogMessage>(); void Awake() { MWindowPosX = 20; MWindowPosY = 20; MWindowWidth = 330; MWindowHeight = 300; mLabelHeight = 40; mLogStackHeight = 0; mStyle.fontSize = 16; mInfoIcon = Resources.Load("Icons/LogInfo") as Texture; mErrorIcon = Resources.Load("Icons/LogError") as Texture; mWarnIcon = Resources.Load("Icons/LogWarn") as Texture; mLine = Resources.Load("Icons/Line") as Texture; mMessageStack = new List <LogMessage>(); MInstance = this; Application.RegisterLogCallback(LogListener); DontDestroyOnLoad(this); }
public void SetIcon() { LogConsoleWindow _mIn = LogConsoleWindow.MInstance; switch (type) { case LogType.Log: icon = _mIn.mInfoIcon; break; case LogType.Warning: icon = _mIn.mWarnIcon; break; case LogType.Error: icon = _mIn.mErrorIcon; break; case LogType.Exception: icon = _mIn.mErrorIcon; break; } }
public void SetCanShow() { LogConsoleWindow _mIn = LogConsoleWindow.MInstance; switch (type) { case LogType.Log: canShow = _mIn.mIsShowInfo; break; case LogType.Warning: canShow = _mIn.mIsShowWarn; break; case LogType.Error: canShow = _mIn.mIsShowError; break; case LogType.Exception: canShow = _mIn.mIsShowError; break; } }