示例#1
0
        /// <summary>
        ///   错误
        /// </summary>
        void Error(emErrorCode ec, string message = null)
        {
            ErrorCode = ec;

            string ms = string.IsNullOrEmpty(message) ?
                        ErrorCode.ToString() : ErrorCode.ToString() + " - " + message;

            Debug.LogError(ms);
        }
        /// <summary>
        ///
        /// </summary>
        void Error(emErrorCode ec, string message = null)
        {
            lock (lock_obj_)
            {
                string ms = string.IsNullOrEmpty(message) ? ec.ToString() : ec.ToString() + " - " + message;
                Debug.LogError(ms);

                ErrorCode = ec;
                IsDone    = true;
                Abort();
            }
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        void Error(emErrorCode ec, string message = null)
        {
            ErrorCode = ec;

            StringBuilder sb = new StringBuilder("[AssetBundleError] - ");

            sb.Append(ErrorCode.ToString());
            if (!string.IsNullOrEmpty(message))
            {
                sb.Append("\n"); sb.Append(message);
            }
            Debug.LogWarning(sb.ToString());
        }