浏览代码

removed try/catch

/0.9.0.preview.1_staging
Aryan Mann 3 年前
当前提交
6ecab448
共有 1 个文件被更改,包括 4 次插入11 次删除
  1. 15
      com.unity.perception/Runtime/PerceptionAnalytics.cs

15
com.unity.perception/Runtime/PerceptionAnalytics.cs


/// <param name="data">Payload of the event.</param>
static void SendPerceptionAnalyticsEvent(AnalyticsEvent theEvent, object data)
{
try
{
if (theEvent.type == AnalyticsEventType.Editor || theEvent.type == AnalyticsEventType.RuntimeAndEditor)
{
EditorAnalytics.SendEventWithLimit(theEvent.name, data, theEvent.versionId);
}
if (theEvent.type == AnalyticsEventType.Editor || theEvent.type == AnalyticsEventType.RuntimeAndEditor)
{
EditorAnalytics.SendEventWithLimit(theEvent.name, data, theEvent.versionId);
}
#else
if (theEvent.type == AnalyticsEventType.Runtime || theEvent.type == AnalyticsEventType.RuntimeAndEditor)
{

}
catch (Exception exc)
{
Debug.Log($"Unable to report ${theEvent.name}: {exc.Message}");
}
}
#endregion

正在加载...
取消
保存