/// <summary> /// Implement the config to this UI /// </summary> /// <param name="mca">reference to the config.</param> void SetMatchmakingConfigAsset(MatchmakingConfigAsset mca) { MmClient.SetFleetId(mca.MultiplayFleetID); fleetIDField.SetTextWithoutNotify(mca.MultiplayFleetID); MmClient.SetMatchmakingUrl(mca.URLAndUPID()); mmServiceField.SetTextWithoutNotify(mca.URLAndUPID()); }
/// <summary> ///Function for the dropdownt to push its selection /// </summary> /// <param name="optionIndex">the return index from the Dropdown</param> public void SelectedMatchmaking(int optionIndex) { TMP_Dropdown.OptionData selectedData = matchmakeConfigDropdown.options[optionIndex]; MatchmakingConfigAsset selectedAsset = _optionConfigAssetDict[selectedData]; Debug.LogFormat("Selected: {0} URLUPID: {1} FleetID: {2} ", selectedAsset.name, selectedAsset.URLAndUPID(), selectedAsset.MultiplayFleetID); SetMatchmakingConfigAsset(selectedAsset); }