UnityGame/Library/PackageCache/com.unity.multiplayer.center/Editor/Analytics/MultiplayerCenterAnalyticsFactory.cs

22 lines
961 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using System;
using Unity.Multiplayer.Center.Questionnaire;
namespace Unity.Multiplayer.Center.Analytics
{
internal static class MultiplayerCenterAnalyticsFactory
{
public static IMultiplayerCenterAnalytics Create()
{
var questionnaire = QuestionnaireObject.instance;
var questionnaireVersion = questionnaire.Questionnaire.Version;
var questionDisplayNames = AnalyticsUtils.GetQuestionDisplayNames(questionnaire.Questionnaire);
var answerDisplayNames = AnalyticsUtils.GetAnswerDisplayNames(questionnaire.Questionnaire);
// Uncomment this line to use the DebugAnalytics class instead of the MultiplayerCenterAnalytics class
// return new DebugAnalytics(questionnaireVersion, questionDisplayNames, answerDisplayNames);
return new MultiplayerCenterAnalytics(questionnaireVersion, questionDisplayNames, answerDisplayNames);
}
}
}