123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- namespace UnityEditor.Purchasing
- {
- internal static class GenericEditorMenuItemClickEventSenderHelpers
- {
- internal static void SendGameObjectMenuAddIapButtonEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapButton_legacy);
- }
-
- internal static void SendGameObjectMenuAddCodelessIapButtonEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapButton);
- }
-
- internal static void SendIapMenuAddIapButtonEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapButton_legacy);
- }
-
- internal static void SendIapMenuAddCodelessIapButtonEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapButton);
- }
-
- internal static void SendGameObjectMenuAddIapListenerEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapListener);
- }
-
- internal static void SendIapMenuAddIapListenerEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapListener);
- }
-
- internal static void SendIapMenuOpenCatalogEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionOpenCatalog);
- }
-
- internal static void SendIapMenuOpenObfuscatorEvent()
- {
- BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionObfuscationOpenWindow);
- }
-
- static void BuildAndSendEvent(string component, string source, string action)
- {
- var newEvent = new GenericEditorClickMenuItemEvent(component, source, action);
- PurchasingServiceAnalyticsSender.SendEvent(newEvent);
- }
- }
- }
|