Beispiel #1
0
    //这个接口是切换场景的命令,但切换的时候还会有别的工作要做,所以不要直接调用
    public static void Load(string sceneName, EmSceneLoadingType lt)
    {
        if (instance.isLoading)
        {
            return;
        }

        instance.loadingType = lt;

        //启动游戏的载入界面是另外一个
        if (lt == EmSceneLoadingType.EnterGame)
        {
            UIManager.OpenPanel(UIManager.instance.enterGamePanel);
        }
        else if (lt == EmSceneLoadingType.BattleChangeLevel)
        {
            UILoadingPanel.Open(UILoadingPanel.MODE_DARK);
        }
        else
        {
            UILoadingPanel.Open(UILoadingPanel.MODE_TEXTURE);
        }

        GameMain.curStatus   = GameStatus.Loading;
        instance.sceneToLoad = sceneName;
        instance.step        = 1;
    }
    // Token: 0x060009C8 RID: 2504 RVA: 0x0002A584 File Offset: 0x00028984
    public void ShowLoading()
    {
        Transform      transform = ResourceHelper.LoadUI("Prefabs/UI/UILoadingPanel", base.transform);
        UILoadingPanel component = transform.GetComponent <UILoadingPanel>();

        component.Init();
    }
Beispiel #3
0
 private void LoadingFinished()
 {
     if (loadingType != EmSceneLoadingType.BattleChangeLevel)
     {
         GameMain.PlayBgm();
     }
     UILoadingPanel.Close();
     UIManager.ClosePanel(UIManager.instance.enterGamePanel);
 }