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"); }
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(); }
public override void Enter(params object[] param) { GF.ShowView <BattleView>(); }