private void Awake() { this._logs = new List <LogEntry>(); for (int i = 0; i < 60; i++) { this._logs.Add(new LogEntry()); } this._queueIx = 0; this._redStyle = new GUIStyle(); this._redStyle.normal.textColor = Color.red; this._yellowStyle = new GUIStyle(); this._yellowStyle.normal.textColor = Color.yellow; this._whiteStyle = new GUIStyle(); this._whiteStyle.normal.textColor = Color.white; this._bgStyle = new GUIStyle(); Texture2D textured = new Texture2D(0x10, 0x10); Color[] colors = new Color[0x100]; for (int j = 0; j < colors.Length; j++) { colors[j] = new Color(0f, 0f, 0f, 1f); } textured.SetPixels(colors); this._bgStyle.normal.background = textured; this._state = DeviceLogState.CollapsedWaitTouchDone; Application.logMessageReceived += new UnityEngine.Application.LogCallback(this.LogCallback); }
private void OnException() { this._state = DeviceLogState.Crashed; Application.logMessageReceived -= new UnityEngine.Application.LogCallback(this.LogCallback); if (Singleton <LevelManager> .Instance != null) { Singleton <LevelManager> .Instance.SetPause(true); } }