namespace UnityEngine.Purchasing.Default { /// /// A factory for creating WinRT Store objects. /// public class Factory { /// /// Creates a WinRTStore objects. /// /// Whether or not to use a mock store. /// The instance of the WinRTStore created public static IWindowsIAP Create(bool mocked) { ICurrentApp app; if (mocked) { app = new UnibillCurrentAppSimulator(); } else { app = new CurrentApp(); } return new WinRTStore(app); } } }