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

32 lines
757 B
C#

using System;
namespace UnityEngine.Monetization
{
static class Creator
{
static internal IMonetizationPlatform CreatePlatform()
{
try
{
#if UNITY_EDITOR || UNITY_ANDROID || UNITY_IOS
return new Platform();
#else
return new UnsupportedPlatform();
#endif
}
catch (Exception exception)
{
try
{
Debug.LogError("Error Initializing Unity Monetization.");
Debug.LogError(exception.Message);
}
catch (MissingMethodException)
{
}
return new UnsupportedPlatform();
}
}
}
}