Game/Library/PackageCache/com.unity.purchasing@2.1.1/Runtime/managed/Purchasing/SimpleCatalogProvider.cs
2021-01-16 18:29:12 +01:00

24 lines
496 B
C#

using System;
using System.Collections.Generic;
using UnityEngine.Purchasing.Extension;
namespace UnityEngine.Purchasing
{
internal class SimpleCatalogProvider : ICatalogProvider
{
private Action<Action<HashSet<ProductDefinition>>> m_Func;
internal SimpleCatalogProvider (Action<Action<HashSet<ProductDefinition>>> func)
{
m_Func = func;
}
public void FetchProducts (Action<HashSet<ProductDefinition>> callback)
{
if (m_Func != null) {
m_Func (callback);
}
}
}
}