public void AcceptGame() { if (_homeMessageManager == null) { _homeMessageManager = GameObject.FindGameObjectWithTag("HomeManager").GetComponent <HomeMessageManager>(); } _homeMessageManager.GetYesOrNoMessage( "这场比赛将会被服务器记录\n并且影响你的Rank分\n请确保在网络畅通下进行", b => { if (!b) { return; } _gameStatus = GameStatus.AcceptGame; _webConnector.GetGame(f => { gameMode = f; if (gameMode < 0) { #if UNITY_EDITOR Debug.Log("Unknown error on accept game"); #endif _homeMessageManager.ShowImportantMessage("抱歉,当前比赛池中\n未能找到匹配\n您当前Rank的比赛", b1 => { }); } else { SceneManager.LoadScene(2); } }); }); }