[M] change sns link function
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
package com.unity3d.player;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
@@ -62,7 +62,6 @@ dependencies {
|
||||
|
||||
// Android Resolver Exclusions Start
|
||||
android {
|
||||
namespace "com.unity3d.player"
|
||||
packagingOptions {
|
||||
exclude ('/lib/armeabi/*' + '*')
|
||||
exclude ('/lib/mips/*' + '*')
|
||||
|
||||
@@ -59,10 +59,8 @@ public class UnbindTest : MonoBehaviour
|
||||
checkSnsBtn.onClick.AddListener(OnCheckSns);
|
||||
bindBtn.onClick.AddListener(OnBind);
|
||||
unbindBtn.onClick.AddListener(OnUnbind);
|
||||
|
||||
Debug.Log("========== Init =============");
|
||||
TYSdkFacade.Instance.Init();
|
||||
|
||||
Debug.Log($"AccoutType {accoutType}");
|
||||
}
|
||||
|
||||
@@ -109,13 +107,11 @@ public class UnbindTest : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void OnBind()
|
||||
private async void OnBind()
|
||||
{
|
||||
Debug.Log("========== Bind =============");
|
||||
using (var t = new AndroidJavaClass(Cls))
|
||||
{
|
||||
t.CallStatic("Bind", accoutType.ToString(), loginInfo.StrUserId);
|
||||
}
|
||||
var linkResult = await TYSdkFacade.Instance.LinkAccount(accoutType);
|
||||
Debug.Log($"Bind Result Code:{linkResult.code}, UserId:{linkResult.userId}, bindInfo:{linkResult.bindInfo}");
|
||||
}
|
||||
|
||||
public void BindCallback(string message)
|
||||
|
||||
Reference in New Issue
Block a user