18 lines
373 B
C#
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
|
|
}
|
|
|
|
}
|
|
} |