Esempio n. 1
0
 public override void Enter(params object[] param)
 {
     GF.ShowView <LoadingView>();
     GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 0));
     GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 50));
     Task.WaitFor(0.5f, () =>
     {
         GF.ChangeState <BattleLoginState>();
     });
     UIManager.instance.Load("Battle/Battle");
 }
Esempio n. 2
0
        IEnumerator ResLoad()
        {
            GF.ShowView <LoadingView>();

            GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 0));
            yield return(new WaitForSeconds(0.2f));

            GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 15));
            yield return(new WaitForSeconds(0.2f));

            GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 30));
            yield return(new WaitForSeconds(0.1f));

            GF.Send(EventDef.HallLoading, new LoadingStatus(LTKey.LOADING_UI, 45));
            yield return(new WaitForSeconds(0.1f));

            OnLoadFinished();
        }
Esempio n. 3
0
 public override void Enter(params object[] param)
 {
     GF.ShowView <BattleView>();
 }