QKGame.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Runtime.InteropServices;
  4. //using Newtonsoft.Json;
  5. #if UNITY_IOS
  6. using System.Collections.Generic;
  7. public enum QKSDKInitState
  8. {
  9. None,
  10. Initing,
  11. Success,
  12. Fail,
  13. }
  14. public class ProductInfo
  15. {
  16. public string ID;
  17. public string Name;
  18. }
  19. public class QKGame {
  20. public static QKSDKInitState InitState = QKSDKInitState.None;
  21. public Dictionary<string, ProductInfo> ProductInfos = new Dictionary<string, ProductInfo>()
  22. {
  23. { "0.99",new ProductInfo(){ ID = "intention0.99",Name = "0.99禮包"} },
  24. { "1.99",new ProductInfo(){ ID = "intention1.99",Name = "1.99禮包"} },
  25. { "2.99",new ProductInfo(){ ID = "intention2.99",Name = "2.99禮包"} },
  26. { "4.99",new ProductInfo(){ ID = "intention4.99",Name = "4.99禮包"} },
  27. { "9.99",new ProductInfo(){ ID = "intention9.99",Name = "9.99禮包"} },
  28. { "14.99",new ProductInfo(){ ID = "intention14.99",Name = "14.99禮包"} },
  29. { "19.99",new ProductInfo(){ ID = "intention19.99",Name = "19.99禮包"} },
  30. { "49.99",new ProductInfo(){ ID = "intention49.99",Name = "49.99禮包"} },
  31. { "99.99",new ProductInfo(){ ID = "intention99.99",Name = "99.99禮包"} },
  32. };
  33. }
  34. #endif