GetCurrentLobbyID
Namespace: SynicSugar.MatchMake
Class: MatchMakeManager
public void SetTimeoutSec(ushort MatchmakingTimeout = 180, ushort InitialConnectionTimeout = 15)
Description
Set Timeout sec. Should call this before start matchmake.
/// If use this, need call this before start matchmaking.
MatchmakingTimeout
Timeout sec from the start of matchmaking until the the end of matchmaking(= just before preparation for p2p connect).
If nothing is passed, pass the value set in Editor.
Recommend:30-300
InitialConnectionTimeout
Timeout sec from the start of preparation for p2p until the the end of the preparetion.
If nothing is passed, pass the value set in Editor.
Recommend:5-20
using SynicSugar.MatchMake;
public class MatchMake : MonoBehaviour {
void Start(){
MatchMakeManager.Instance.SetTimeoutSec(InitialConnectionTimeout: 10);
//
//Start Matchmaking
}
}