Пример #1
0
 public void QuitGame()
 {
     ConfirmDialog.Instance.Open("Quit Game", "Are you sure you want to quit the game while you are in a match?", "Quit Game", "Nevermind", () =>
     {
         StartCoroutine(DB_API.Match_Leave(DB_API.UserAuth.SessionID, DB_API.MatchID, callback => { }));
         NetworkingManager.Singleton.StopClient();
         Application.Quit();
     });
 }
Пример #2
0
 public void LeaveMatch()
 {
     ConfirmDialog.Instance.Open("Leave Match", "Are you sure you want to leave the match?", "Leave Match", "Nevermind", () =>
     {
         StartCoroutine(DB_API.Match_Leave(DB_API.UserAuth.SessionID, DB_API.MatchID, callback => { }));
         NetworkingManager.Singleton.StopClient();
         SceneManager.LoadScene("Main Menu");
     });
 }