using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using vnxbqy.UI;
|
|
public class AccountLoginState : NetState
|
{
|
const int OVERTIME_THRESHOLD = 15;
|
float overTime = 0f;
|
|
LoginModel loginModel { get { return ModelCenter.Instance.GetModel<LoginModel>(); } }
|
|
public override void OnEnter()
|
{
|
base.OnEnter();
|
overTime = Time.time + OVERTIME_THRESHOLD;
|
}
|
|
protected override void Update()
|
{
|
if (GameNetSystem.Instance.netState != GameNetSystem.NetState.AccountLogin)
|
{
|
return;
|
}
|
|
if (Time.time > overTime)
|
{
|
GameNetSystem.Instance.LoginOut();
|
ServerForceExitHintWin.reason = 111;
|
}
|
}
|
|
public override void OnExit()
|
{
|
base.OnExit();
|
}
|
|
}
|