예제 #1
0
        protected override IEnumerator Load()
        {
            AssetManager.LoadAssetBundle(AssetBundlesUtility.GetUIAnimatedCharacterResourcesBundleName());
            UILoader <UIZaapPVPLoading> loader = new UILoader <UIZaapPVPLoading>(this, "MatchmakingUI_1v1", "core/scenes/maps/havre_maps", disableOnLoad: true);

            yield return(loader.Load());

            m_ui = loader.ui;
            m_ui.onForceAiRequested       = OnForceAiRequested;
            m_ui.onCancelRequested        = OnCancelRequested;
            m_ui.onEnterAnimationFinished = OnPlayRequested;
            yield return(m_ui.LoadAssets());

            m_frame = new MatchMakingFrame
            {
                onGameCreated  = OnGameCreated,
                onGameCanceled = OnGameCancel,
                onGameError    = OnGameError
            };
        }
예제 #2
0
 public VersusState(UIZaapPVPLoading ui, StateContext nextState)
     : this()
 {
     m_ui        = ui;
     m_nextState = nextState;
 }