32 lines
757 B
C#
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();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|