A game about forced loneliness, made by TACStudios
at master 32 lines 1.3 kB view raw
1using System; 2using Unity.Multiplayer.Center.Common.Analytics; 3using UnityEngine; 4 5namespace Unity.Multiplayer.Center.Analytics 6{ 7 /// <summary> 8 /// The concrete implementation of the IOnboardingSectionAnalyticsProvider interface. 9 /// It shall be created by the GettingStarted tab with the knowledge of the target package and the section id 10 /// provided by the attribute of the onboarding section, so that the section implementer does not have to worry 11 /// about it. 12 /// </summary> 13 internal class OnboardingSectionAnalyticsProvider : IOnboardingSectionAnalyticsProvider 14 { 15 readonly IMultiplayerCenterAnalytics m_Analytics; 16 readonly string m_TargetPackageId; 17 readonly string m_SectionId; 18 19 public OnboardingSectionAnalyticsProvider(IMultiplayerCenterAnalytics analytics, string targetPackageId, string sectionId) 20 { 21 Debug.Assert(analytics != null); 22 m_Analytics = analytics; 23 m_TargetPackageId = targetPackageId; 24 m_SectionId = sectionId; 25 } 26 27 public void SendInteractionEvent(InteractionDataType type, string displayName) 28 { 29 m_Analytics.SendGettingStartedInteractionEvent(m_TargetPackageId, m_SectionId, type, displayName); 30 } 31 } 32}