暫無描述
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.

Factory.cs 759B

12345678910111213141516171819202122232425262728
  1. namespace UnityEngine.Purchasing.Default
  2. {
  3. /// <summary>
  4. /// A factory for creating WinRT Store objects.
  5. /// </summary>
  6. public class Factory
  7. {
  8. /// <summary>
  9. /// Creates a <c>WinRTStore</c> objects.
  10. /// </summary>
  11. /// <param name="mocked"> Whether or not to use a mock store. </param>
  12. /// <returns> The instance of the <c>WinRTStore</c> created</returns>
  13. public static IWindowsIAP Create(bool mocked)
  14. {
  15. ICurrentApp app;
  16. if (mocked)
  17. {
  18. app = new UnibillCurrentAppSimulator();
  19. }
  20. else
  21. {
  22. app = new CurrentApp();
  23. }
  24. return new WinRTStore(app);
  25. }
  26. }
  27. }