SquareDash/Library/PackageCache/com.unity.purchasing@4.10.0/Editor/Analytics/Helpers/GameServices/GameServicesEventSenderHelpers.cs
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +01:00

52 lines
2.0 KiB
C#

namespace UnityEditor.Purchasing
{
internal static class GameServicesEventSenderHelpers
{
internal static void SendTopMenuConfigure()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionConfigure);
}
internal static void SendTopMenuCreateIapButtonEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton_legacy);
}
internal static void SendTopMenuCreateCodelessIapButtonEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton);
}
internal static void SendTopMenuCreateIapListenerEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapListener);
}
internal static void SendTopMenuIapCatalogEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionIapCatalog);
}
internal static void SendTopMenuReceiptValidationObfuscatorEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionReceiptValidationObfuscator);
}
internal static void SendTopMenuSwitchStoreEvent()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionSwitchStore);
}
internal static void SendProjectSettingsOpenDashboardForPublicKey()
{
BuildAndSendEvent(GameServicesEventComponents.k_ComponentProjectSettings, GameServicesEventActions.k_ActionOpenDashboardForPublicKey);
}
static void BuildAndSendEvent(string component, string action)
{
var newEvent = new GenericEditorGameServiceEvent(component, action);
PurchasingServiceAnalyticsSender.SendEvent(newEvent);
}
}
}