/// <summary> /// Setup involving other components /// </summary> public void Start() { if (!Application.isPlaying || GA_SYSTEMTRACKER != this) { return; } if (UseForSubsequentLevels) { DontDestroyOnLoad(gameObject); } GA_Gui gui = GetComponent <GA_Gui>(); gui.GuiAllowScreenshot = GuiAllowScreenshot; gui.GuiEnabled = GuiEnabled; GA.API.Debugging.SubmitErrors = SubmitErrors; GA.API.Debugging.SubmitErrorStackTrace = SubmitErrorStackTrace; GA.API.Debugging.SubmitErrorSystemInfo = SubmitErrorSystemInfo; GA.API.Debugging.MaxErrorCount = MaxErrorCount; #if (UNITY_4_9 || UNITY_4_8 || UNITY_4_7 || UNITY_4_6 || UNITY_4_5 || UNITY_4_3 || UNITY_4_2 || UNITY_4_1 || UNITY_4_0_1 || UNITY_4_0 || UNITY_3_5 || UNITY_3_4 || UNITY_3_3 || UNITY_3_2 || UNITY_3_1 || UNITY_3_0_0 || UNITY_3_0 || UNITY_2_6_1 || UNITY_2_6) if (GA.API.Debugging.SubmitErrors) { Application.RegisterLogCallback(GA.API.Debugging.HandleLog); } #else if (GA.API.Debugging.SubmitErrors) { Application.logMessageReceived += GA.API.Debugging.HandleLog; } #endif // Add system specs to the submit queue if (IncludeSystemSpecs) { List <Hashtable> systemspecs = GA.API.GenericInfo.GetGenericInfo(""); foreach (Hashtable spec in systemspecs) { GA_Queue.AddItem(spec, GA_Submit.CategoryType.GA_Error, false); } } }
/// <summary> /// Setup involving other components /// </summary> public void Start() { if (!Application.isPlaying || GA_SYSTEMTRACKER != this) { return; } if (UseForSubsequentLevels) { DontDestroyOnLoad(gameObject); } GA_Gui gui = GetComponent <GA_Gui>(); gui.GuiAllowScreenshot = GuiAllowScreenshot; gui.GuiEnabled = GuiEnabled; GA.API.Debugging.SubmitErrors = SubmitErrors; GA.API.Debugging.SubmitErrorStackTrace = SubmitErrorStackTrace; GA.API.Debugging.SubmitErrorSystemInfo = SubmitErrorSystemInfo; GA.API.Debugging.MaxErrorCount = MaxErrorCount; if (GA.API.Debugging.SubmitErrors) //Warning this registerLogCallback is slow because it saves the stacktraces { Application.RegisterLogCallback(GA.API.Debugging.HandleLog); } // Add system specs to the submit queue if (IncludeSystemSpecs) { List <Hashtable> systemspecs = GA.API.GenericInfo.GetGenericInfo(""); foreach (Hashtable spec in systemspecs) { GA_Queue.AddItem(spec, GA_Submit.CategoryType.GA_Log, false); } } }