update:成功vk登陆
This commit is contained in:
@@ -38,7 +38,9 @@ namespace tysdk
|
||||
{"google", EAccoutType.hwGoogle},
|
||||
{"fb", EAccoutType.hwFacebook},
|
||||
{"tyGuest", EAccoutType.hwGuest},
|
||||
{"ios13", EAccoutType.Apple}
|
||||
{"ios13", EAccoutType.Apple},
|
||||
{"vk.global.app",EAccoutType.hwVkid},
|
||||
|
||||
};
|
||||
|
||||
private static EAccoutType ConvertAccoutType(string accountType)
|
||||
|
||||
@@ -9,10 +9,15 @@ namespace tysdk
|
||||
hwGoogle,
|
||||
hwFacebook,
|
||||
hwGuest,
|
||||
hwRustore,
|
||||
hwVkid,
|
||||
Apple,
|
||||
none
|
||||
}
|
||||
public static class AccountInfo
|
||||
{
|
||||
public static string hwVkid = "vk.global.app";
|
||||
}
|
||||
|
||||
|
||||
public class LoginInfo
|
||||
{
|
||||
|
||||
@@ -107,9 +107,19 @@ namespace tysdk
|
||||
|
||||
public static void UnityLogin(EAccoutType accoutType)
|
||||
{
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
if (accoutType == EAccoutType.hwVkid)
|
||||
{
|
||||
sdkManager.CallStatic("UnityLogin", accoutType.ToString());
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
{
|
||||
sdkManager.CallStatic("UnityLogin",AccountInfo.hwVkid);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
{
|
||||
sdkManager.CallStatic("UnityLogin", accoutType.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user