diff options
author | chai <chaifix@163.com> | 2021-01-04 14:52:20 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-04 14:52:20 +0800 |
commit | 00cfa93034c5b6fad750b395ac14a1c58c9dd93f (patch) | |
tree | 18edf3549743baf3607fd74b86c50aba8d27b77c /Client/Assembly-CSharp/AmongUsClient.cs | |
parent | b10039b0e64a4a8f1d4ee611e4acf1e79c84ffdd (diff) |
*协议
Diffstat (limited to 'Client/Assembly-CSharp/AmongUsClient.cs')
-rw-r--r-- | Client/Assembly-CSharp/AmongUsClient.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/AmongUsClient.cs b/Client/Assembly-CSharp/AmongUsClient.cs index 5a83263..433144e 100644 --- a/Client/Assembly-CSharp/AmongUsClient.cs +++ b/Client/Assembly-CSharp/AmongUsClient.cs @@ -82,6 +82,7 @@ public class AmongUsClient : InnerNetClient SceneManager.LoadScene(this.MainMenuScene); } + // 收到游戏房间数据后的处理 protected override void OnGetGameList(int totalGames, List<GameListing> availableGames) { for (int i = 0; i < this.GameListHandlers.Count; i++) @@ -100,6 +101,10 @@ public class AmongUsClient : InnerNetClient { } + /// <summary>
+ ///
+ /// </summary>
+ /// <param name="gameIdString"></param> protected override void OnWaitForHost(string gameIdString) { if (this.GameState != InnerNetClient.GameStates.Joined) @@ -112,6 +117,7 @@ public class AmongUsClient : InnerNetClient } } + // 开始游戏后的处理 protected override void OnStartGame() { Debug.Log("Received game start: " + base.AmHost.ToString()); |