[F] Link [A] signout
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AppsFlyerSDK;
|
||||
using asap.core;
|
||||
using ThinkingData.Analytics;
|
||||
using tysdk;
|
||||
using UnityEngine;
|
||||
@@ -17,6 +18,8 @@ public class SDKTest : MonoBehaviour
|
||||
[SerializeField]
|
||||
private Button _loginFbBtn;
|
||||
[SerializeField]
|
||||
private Button _loginAppleBtn;
|
||||
[SerializeField]
|
||||
private Button _loginTokenBtn;
|
||||
[SerializeField]
|
||||
private Button _linkGoogleBtn;
|
||||
@@ -25,6 +28,8 @@ public class SDKTest : MonoBehaviour
|
||||
[SerializeField]
|
||||
private Button _linkFacbookBtn;
|
||||
[SerializeField]
|
||||
private Button _linkAppleBtn;
|
||||
[SerializeField]
|
||||
private Button _checkFacbookBtn;
|
||||
[SerializeField]
|
||||
private Button _logOutBtn;
|
||||
@@ -39,13 +44,20 @@ public class SDKTest : MonoBehaviour
|
||||
[SerializeField]
|
||||
private Button _ATTBtn;
|
||||
[SerializeField]
|
||||
private Button _signoutBtn;
|
||||
[SerializeField]
|
||||
private Text _messageTxt;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Debug.Log("SDKTest Start");
|
||||
//===============================================================================
|
||||
//====================== Test Server ===========================
|
||||
UnityBridgeFunc.UnityResetServerUrl("https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
IObjectSerializer serializer = new ObjectSerializer();
|
||||
IConfig config = new Config(serializer);
|
||||
GContext.container.RegisterInstance<IConfig>(config);
|
||||
config.Set("AGG_SERVER", "https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
//====================== Test Server ===========================
|
||||
//===============================================================================
|
||||
//
|
||||
@@ -53,6 +65,9 @@ public class SDKTest : MonoBehaviour
|
||||
_loginGuestBtn.onClick.AddListener(() => OnLogin(EAccoutType.hwGuest));
|
||||
_loginGoogleBtn.onClick.AddListener(() => OnLogin(EAccoutType.hwGoogle));
|
||||
_loginFbBtn.onClick.AddListener(() => OnLogin(EAccoutType.hwFacebook));
|
||||
#if UNITY_IOS
|
||||
_loginAppleBtn.onClick.AddListener(() => OnLogin(EAccoutType.Apple));
|
||||
#endif
|
||||
_loginTokenBtn.onClick.AddListener(OnLoginByToken);
|
||||
_logOutBtn.onClick.AddListener(OnLogout);
|
||||
_linkGoogleBtn.onClick.AddListener(OnLinkGoogle);
|
||||
@@ -64,6 +79,8 @@ public class SDKTest : MonoBehaviour
|
||||
_gaTestBtn.onClick.AddListener(OnGaBtn);
|
||||
_gaAppMaxBtn.onClick.AddListener(OnAppMaxBtn);
|
||||
_ATTBtn.onClick.AddListener(OnATTBtn);
|
||||
_signoutBtn.onClick.AddListener(OnSignoutBtn);
|
||||
Debug.Log("SDKTest Started");
|
||||
}
|
||||
|
||||
void Init()
|
||||
@@ -304,6 +321,11 @@ eb68f93a08156e04
|
||||
_messageTxt.text = $"\n facebook account linked : {isSuccess}";
|
||||
}
|
||||
|
||||
private void OnSignoutBtn()
|
||||
{
|
||||
TYSdkFacade.Instance.Signout();
|
||||
}
|
||||
|
||||
/*
|
||||
public void OnTaBtn()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user