Firstborn/Library/PackageCache/com.unity.ads@3.7.5/Runtime/Monetization/EditorNativePromoAdapter.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

35 lines
785 B
C#

#if UNITY_EDITOR
namespace UnityEngine.Monetization
{
public class EditorNativePromoAdapter : INativePromoAdapter
{
public EditorNativePromoAdapter(PromoAdPlacementContent placementContent)
{
metadata = placementContent.metadata;
}
public PromoMetadata metadata { get; }
public void OnShown()
{
OnShown(PromoShowType.Full);
}
public void OnShown(PromoShowType type)
{
Debug.LogFormat("Native promo was shown: {0}", type);
}
public void OnClosed()
{
Debug.LogFormat("Native promo was closed.");
}
public void OnClicked()
{
Debug.LogFormat("Native promo was clicked");
}
}
}
#endif