summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/AmongUsClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/AmongUsClient.cs')
-rw-r--r--Client/Assembly-CSharp/AmongUsClient.cs6
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());