using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using Snxxz.UI;
|
|
public class LoginStage : Stage
|
{
|
LoginModel loginModel { get { return ModelCenter.Instance.GetModel<LoginModel>(); } }
|
|
public override void Initialize()
|
{
|
base.Initialize();
|
WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
|
|
var backGroundWin = WindowCenter.Instance.Get<LaunchBackGroundWin>();
|
if (backGroundWin != null)
|
{
|
backGroundWin.ShowLoginEffect();
|
}
|
|
if (VersionConfig.Get().isBanShu)
|
{
|
WindowCenter.Instance.Open<BanShuLoginWin>(true);
|
}
|
else
|
{
|
WindowCenter.Instance.Open<LoginWin>(true);
|
}
|
|
switch (VersionConfig.Get().versionAuthority)
|
{
|
case VersionAuthority.InterTest:
|
GameNotice.OpenGameNotice();
|
break;
|
case VersionAuthority.Release:
|
if (!VersionConfig.Get().isBanShu)
|
{
|
if (!loginModel.sdkLogined)
|
{
|
SDKUtility.Instance.FreePlatformLogin();
|
OperationLogCollect.Instance.RecordLauchEvent(4);
|
OperationLogCollect.Instance.RecordEvent(4);
|
}
|
}
|
break;
|
}
|
|
SoundPlayer.Instance.PlayLoginMusic();
|
|
if (!AssetVersionUtility.hasDownLoadFullAsset)
|
{
|
InGameDownLoad.Instance.inGameDownLoadAllow = true;
|
InGameDownLoad.Instance.TryDownLoad(false);
|
}
|
}
|
|
public override void UnInitialize()
|
{
|
base.UnInitialize();
|
}
|
|
|
}
|