update:更新sdk 脚本

This commit is contained in:
2026-04-03 21:19:41 +08:00
parent db82fe0116
commit c0b6ccf7ed
3 changed files with 15 additions and 9 deletions

View File

@@ -7,7 +7,13 @@ namespace tysdk
public static class UnityBridgeFunc
{
#if UNITY_EDITOR || UNITY_ANDROID
private static string EAccountTypeToStr(EAccoutType accountType)
{
return accountType == EAccoutType.hwVkid ? AccountString.hwVkid : accountType.ToString();
}
#endif
#if UNITY_EDITOR
//初始化sdk
public static void InitSDK(){}
@@ -62,11 +68,6 @@ namespace tysdk
public static void FBShareLink(string title, string content, string url) { }
public static void MessengerShareLink(string title, string content, string url) { }
private static string EAccountTypeToStr(EAccoutType accoutType)
{
return accoutType == EAccoutType.hwVkid ? TYSdkFacade.AccountInfo.hwVkid : accoutType.ToString();
}
#elif UNITY_ANDROID
private static string SDK_CLASS = "com.unity3d.player.SDKManager";