AsyncLobbyIDMethod 

    Namespace: SynicSugar.MatchMake
    Class: MatchMakeManager

    LobbyIDMethod asyncLobbyIDMethod

    Description 

    The Fincs to save and delete LobbyID currently belonging.
    We use this for the way to save and delete LobbyID that have return UniTask.
    If we don't use public void Register(Func<UniTask> save, Func<UniTask> delete, bool changeType = true) to add the events, need switch lobbyIdSaveType to AsyncCustomMethod.

    Save is called when matchmaking is complete. In other words, Lobby is filled and the matchmaking is closed, then call Save.
    Delete is called on the last of ConnectHub ExitSession or CloseSession. If user disconnect the session in any other way, SynicSugar determined that the user needs to be reconnected.
    Return result after finish these async process.

    Properity 

    APIdescription
    SaveEvent to save LobbyID to reconnect Lobby.
    DeleteEvent to save LobbyID to reconnect Lobby.

    Properity 

    APIdescription
    RegisterSet events and switch lobbyIdSaveType
    using SynicSugar.MatchMake;
    using Cysharp.Threading.Tasks;
    
    public class MatchMake {
        void SetMatchMakeCondition(){
            //Use api (this switch type automatically)
            MatchMakeManager.Instance.asyncLobbyIDMethod.Register(() => SaveMethod(), () => DeleteMethod());
    
            //Standard event way and change type
            MatchMakeManager.Instance.lobbyIDMethod.Save += () => SaveMethod();
            MatchMakeManager.Instance.lobbyIDMethod.Delete += () => DeleteMethod();
            MatchMakeManager.Instance.lobbyIdSaveType = MatchMakeManager.RecconectLobbyIdSaveType.AsyncCustomMethod;
        }
    
        async UniTask SaveMethod(){
    
        }
    
        async UniTask DeleteMethod(){
    
        }
    }