Ejemplo n.º 1
0
    public static void LogError(string info)
    {
        if (_Instance == null)
        {
            init();
        }

        ScreenLogMsg msg = new ScreenLogMsg();

        msg.logInfo = info;
        msg.logType = ScreenLogType.Error;

        lock (((ICollection)logInfoList_).SyncRoot)
        {
            logInfoList_.Add(msg);
        }

        Debug.LogError(info);
    }
Ejemplo n.º 2
0
    public static void LogWarning(string info)
    {
        if (instance_ == null)
        {
            init();
            //return;
        }

        ScreenLogMsg msg = new ScreenLogMsg();

        msg.logInfo = info;
        msg.logType = ScreenLogType.Warning;

        lock (((ICollection)logInfoList_).SyncRoot)
        {
            logInfoList_.Add(msg);
        }

        Debug.LogWarning("Unity:" + info);
    }