2024-12-16 17:53:28 +08:00

18 lines
373 B
C#

using UnityEngine.Networking;
namespace TTSDK
{
public static class UnityWebRequestCompatibility
{
public static UnityWebRequest PostWwwForm(string host, string data)
{
#if UNITY_2022_1_OR_NEWER
return UnityWebRequest.PostWwwForm(host, data);
#else
return UnityWebRequest.Post(host, data);
#endif
}
}
}