public void AddErrorLog(string log1, string log2 = null, string log3 = null, string log4 = null, string log5 = null, string log6 = null) { this._buffer.Length = 0; if (Thread.CurrentThread.ManagedThreadId == XSingleton <XUpdater> .singleton.ManagedThreadId) { this._buffer.Append(log1).Append(log2).Append(log3).Append(log4).Append(log5).Append(log6).Append(" (at Frame: ").Append(Time.frameCount).Append(" sec: ").Append(Time.realtimeSinceStartup.ToString("F3")).Append(')'); } else { this._buffer.Append(log1).Append(log2).Append(log3).Append(log4).Append(log5).Append(log6); } XFileLog.AddCustomLog("AddErrorLog: " + this._buffer); this.AddLog(XDebugChannel.XDebug_Default, log1, log2, log3, log4, log5, log6, XDebugColor.XDebug_Red); }
public void Init(IPlatform platform, XFileLog log) { this._platform = XSingleton <XUpdater> .singleton.XPlatform; }