Exemplo n.º 1
0
        private static void Log(NendAdLogLevel level, string format, params object[] args)
        {
            if (level >= s_LogLevel)
            {
                switch (level)
                {
                case NendAdLogLevel.Debug:
                case NendAdLogLevel.Info:
                                        #if UNITY_5
                    UnityEngine.Debug.LogFormat(format, args);
                                        #else
                    UnityEngine.Debug.Log(string.Format(format, args));
                                        #endif
                    break;

                case NendAdLogLevel.Warn:
                                        #if UNITY_5
                    UnityEngine.Debug.LogWarningFormat(format, args);
                                        #else
                    UnityEngine.Debug.LogWarning(string.Format(format, args));
                                        #endif
                    break;

                case NendAdLogLevel.Error:
                                        #if UNITY_5
                    UnityEngine.Debug.LogErrorFormat(format, args);
                                        #else
                    UnityEngine.Debug.LogError(string.Format(format, args));
                                        #endif
                    break;
                }
            }
        }
Exemplo n.º 2
0
        private static void Log(NendAdLogLevel level, string format, params object[] args)
        {
            if (level >= s_LogLevel)
            {
                switch (level)
                {
                case NendAdLogLevel.Debug:
                case NendAdLogLevel.Info:
                    UnityEngine.Debug.LogFormat(format, args);
                    break;

                case NendAdLogLevel.Warn:
                    UnityEngine.Debug.LogWarningFormat(format, args);
                    break;

                case NendAdLogLevel.Error:
                    UnityEngine.Debug.LogErrorFormat(format, args);
                    break;
                }
            }
        }