void OnEnable() { DebugLevel = CsDebug.LoadDebugSetting(out LogTarget); if (DebugLevel == null) { Debug.LogError("Failed to load debug settings. Using default."); DebugLevel = new Dictionary <CsDComponent, CsDLevel>(); CsDComponent [] components = (CsDComponent[])Enum.GetValues(typeof(CsDComponent)); foreach (CsDComponent component in components) { DebugLevel.Add(component, CsDLevel.Default); } } }
public void Initialize() { Inst = this; _debugLevel = CsDebug.LoadDebugSetting(out _logTarget); if (_debugLevel == null) { _debugLevel = new Dictionary <CsDComponent, CsDLevel>(); CsDComponent [] components = (CsDComponent[])Enum.GetValues(typeof(CsDComponent)); foreach (CsDComponent component in components) { _debugLevel.Add(component, CsDLevel.Default); } } //DebugChar = GameObject.Find("PlayerCharacter").GetComponent<Character>(); _bufferSize = 300000; _bufferedLog = ""; _bufferedLog = "\r\n\r\n\r\n****************************\r\n\r\nNew Play Through " + DateTime.Now.ToString() + "\r\n\r\n****************************\r\n\r\n"; }