少年修仙传客户端代码仓库
leonard Wu
2018-08-02 a38909a99dd4108c110611a3575122fe77915a99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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();
    }
 
 
}