hch
2 天以前 a3316f22bceb07dd677c7af8aa79d8c52d26dc2b
Main/System/Login/LoginManager.cs
@@ -66,6 +66,9 @@
        SDKUtils.Instance.onFreePlatformBindOk += OnSDKAccountBindOk;
        LaunchInHot.Instance.OnApplicationOut += OnApplicationOut;
        // #if UNITY_EDITOR
        // GlobalTimeEvent.Instance.MSEvent += OnMSEvent;
        // #endif
    }
    public override void Release()
@@ -243,9 +246,12 @@
    {
        if (ok)
        {
            GameNetSystem.Instance.SetIsWaitLogin(false);
            GameNetSystem.Instance.SetIsWaitLoginMap(true);
            var sendInfo = new C0123_tagCClientPackVersion();
            sendInfo.Version = DwVersionNo;
            GameNetSystem.Instance.SendInfo(sendInfo);
            GameNetSystem.Instance.SetIsWaitLogin(true);
        }
        else
        {
@@ -253,6 +259,13 @@
        }
    }
    // void OnMSEvent()
    // {
    //     //测试用 测试登录流程中一直发无用的包是否影响登录
    //     var pack = new CA504_tagCMPlayerGetReward();
    //     GameNetSystem.Instance.SendInfo(pack);
    // }
    public void AccessLogin(H0101_tagServerPrepared _serverInfo)
    {
@@ -291,6 +304,7 @@
    public C0101_tagCPlayerLogin Get0101SendPackage(H0101_tagServerPrepared _serverInfo)
    {
        GameNetSystem.Instance.SetIsWaitLogin(false);
        var send = new C0101_tagCPlayerLogin();
        switch (VersionConfig.Get().versionAuthority)
        {