lib_unity_purchase/Editor/Analytics/PackageKey/GameServicesAnalyticsPackag...

31 lines
728 B
C#
Raw Permalink Normal View History

2024-01-29 18:49:33 +08:00
#if SERVICES_SDK_CORE_ENABLED
using Unity.Services.Core.Editor;
namespace UnityEditor.Purchasing
{
internal class GameServicesAnalyticsPackageKeyHolder : IAnalyticsPackageKeyHolder
{
static IEditorGameServiceIdentifier s_Identifier;
IEditorGameServiceIdentifier Identifier
{
get
{
if (s_Identifier == null)
{
s_Identifier = EditorGameServiceRegistry.Instance.GetEditorGameService<PurchasingServiceIdentifier>().Identifier;
}
return s_Identifier;
}
}
public string GetPackageKey()
{
return Identifier.GetKey();
}
}
}
#endif