Пример #1
0
    public static void LogWarning(object message, Object context)
    {
#if !DISTRIBUTION_VERSION
        Debug.LogWarning(message, context);
        RealTimeLog.LogError(message.ToString());
#endif
    }
Пример #2
0
    public static void LogError(string format, params object[] args)
    {
#if !DISTRIBUTION_VERSION
        string message = format;
        try
        {
            message = System.String.Format(format, args);
        }
        catch
        {
            for (int i = 0; i < args.Length; i++)
            {
                message += args[i].ToString();
            }
        }
        Debug.LogError(message);
        RealTimeLog.LogError(message.ToString());
#endif
    }