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 }; }
public VersusState(UIZaapPVPLoading ui, StateContext nextState) : this() { m_ui = ui; m_nextState = nextState; }