//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Thursday, March 08, 2018
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class AccountSwitchHintWin : Window
|
{
|
[SerializeField] Button m_SwitchAccount;
|
[SerializeField] Button m_BindAccount;
|
[SerializeField] Button m_Close;
|
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
m_SwitchAccount.AddListener(SwitchAccount);
|
m_BindAccount.AddListener(BindAcount);
|
m_Close.AddListener(CloseClick);
|
}
|
|
protected override void OnPreOpen()
|
{
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
#endregion
|
|
private void SwitchAccount()
|
{
|
ynmbxxjUtil.Instance.FreePlatformLoginout();
|
CloseClick();
|
var loginModel = ModelCenter.Instance.GetModel<LoginModel>();
|
loginModel.sdkLogined = false;
|
}
|
|
private void BindAcount()
|
{
|
ynmbxxjUtil.Instance.FreePlatformBindPhone();
|
CloseClick();
|
}
|
|
}
|
|
}
|