ReYunSDKManager.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // using System;
  2. // using GFGGame.Launcher;
  3. // using UnityEngine;
  4. //
  5. // namespace GFGGame
  6. // {
  7. // public class ReYunSDKManager : SingletonMonoBase<ReYunSDKManager>
  8. // {
  9. // public const string APPKEY = "f7c3bc1b98b6d0a6b5a1642691cad1f7";
  10. //
  11. // private void Awake()
  12. // {
  13. // Tracking.Instance.preInit(APPKEY);
  14. //
  15. // //Tracking.Instance.setAttributionCalllbackDelegate(OnAttibutionCallback);
  16. // //Application.deepLinkActivated += OnDeepLinkActivated;
  17. // //Tracking.Instance.setDeferredDeeplinkCalllbackDelegate(OnDeeplinkCallback);
  18. // //Tracking.Instance.setPrintLog(LauncherConfig.onDebug > 0);
  19. // }
  20. //
  21. // private void Start()
  22. // {
  23. // Tracking.Instance.init(APPKEY, "_default_");
  24. // //if (!string.IsNullOrEmpty(Application.absoluteURL))
  25. // //{
  26. // // OnDeepLinkActivated(Application.absoluteURL);
  27. // //}
  28. // LogUtil.LogDev("ReYunSDKManager init");
  29. // }
  30. //
  31. // public void Init()
  32. // {
  33. //
  34. // }
  35. //
  36. // public void Register(string account)
  37. // {
  38. // LogUtil.LogDev($"ReYunSDKManager Register {account}");
  39. // Tracking.Instance.register(account);
  40. // }
  41. //
  42. // public void Login(string account)
  43. // {
  44. // LogUtil.LogDev($"ReYunSDKManager Login {account}");
  45. // Tracking.Instance.login(account);
  46. // }
  47. //
  48. // public void SetDD(string orderId, float price)
  49. // {
  50. // Tracking.Instance.setDD(orderId, "CNY", price);
  51. // }
  52. //
  53. // private void OnAttibutionCallback(string result, int status)
  54. // {
  55. //
  56. // }
  57. //
  58. // private void OnDeeplinkCallback(string msg)
  59. // {
  60. //
  61. // }
  62. //
  63. // private void OnDeepLinkActivated(string url)
  64. // {
  65. // Tracking.Instance.setEvent("invoke");
  66. // Debug.Log("onDeepLinkActivated function call from unity url:" + url);
  67. // }
  68. //
  69. // }
  70. // }
  71. //