Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

GameServicesEventSenderHelpers.cs 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. namespace UnityEditor.Purchasing
  2. {
  3. internal static class GameServicesEventSenderHelpers
  4. {
  5. internal static void SendTopMenuConfigure()
  6. {
  7. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionConfigure);
  8. }
  9. internal static void SendTopMenuCreateIapButtonEvent()
  10. {
  11. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton_legacy);
  12. }
  13. internal static void SendTopMenuCreateCodelessIapButtonEvent()
  14. {
  15. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapButton);
  16. }
  17. internal static void SendTopMenuCreateIapListenerEvent()
  18. {
  19. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionCreateIapListener);
  20. }
  21. internal static void SendTopMenuIapCatalogEvent()
  22. {
  23. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionIapCatalog);
  24. }
  25. internal static void SendTopMenuReceiptValidationObfuscatorEvent()
  26. {
  27. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionReceiptValidationObfuscator);
  28. }
  29. internal static void SendTopMenuSwitchStoreEvent()
  30. {
  31. BuildAndSendEvent(GameServicesEventComponents.k_ComponentTopMenu, GameServicesEventActions.k_ActionSwitchStore);
  32. }
  33. internal static void SendProjectSettingsOpenDashboardForPublicKey()
  34. {
  35. BuildAndSendEvent(GameServicesEventComponents.k_ComponentProjectSettings, GameServicesEventActions.k_ActionOpenDashboardForPublicKey);
  36. }
  37. static void BuildAndSendEvent(string component, string action)
  38. {
  39. var newEvent = new GenericEditorGameServiceEvent(component, action);
  40. PurchasingServiceAnalyticsSender.SendEvent(newEvent);
  41. }
  42. }
  43. }