[M] change sns link function
This commit is contained in:
@@ -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