설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GenericEditorMenuItemClickEventSenderHelpers.cs 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. namespace UnityEditor.Purchasing
  2. {
  3. internal static class GenericEditorMenuItemClickEventSenderHelpers
  4. {
  5. internal static void SendGameObjectMenuAddIapButtonEvent()
  6. {
  7. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapButton_legacy);
  8. }
  9. internal static void SendGameObjectMenuAddCodelessIapButtonEvent()
  10. {
  11. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapButton);
  12. }
  13. internal static void SendIapMenuAddIapButtonEvent()
  14. {
  15. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapButton_legacy);
  16. }
  17. internal static void SendIapMenuAddCodelessIapButtonEvent()
  18. {
  19. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapButton);
  20. }
  21. internal static void SendGameObjectMenuAddIapListenerEvent()
  22. {
  23. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceGameObjectMenu, EventActions.k_ActionAddIapListener);
  24. }
  25. internal static void SendIapMenuAddIapListenerEvent()
  26. {
  27. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionAddIapListener);
  28. }
  29. internal static void SendIapMenuOpenCatalogEvent()
  30. {
  31. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionOpenCatalog);
  32. }
  33. internal static void SendIapMenuOpenObfuscatorEvent()
  34. {
  35. BuildAndSendEvent(EventComponents.k_ComponentCodeless, EventSourceMenuItems.k_SourceIapMenu, EventActions.k_ActionObfuscationOpenWindow);
  36. }
  37. static void BuildAndSendEvent(string component, string source, string action)
  38. {
  39. var newEvent = new GenericEditorClickMenuItemEvent(component, source, action);
  40. PurchasingServiceAnalyticsSender.SendEvent(newEvent);
  41. }
  42. }
  43. }