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.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Client/Assembly-CSharp/AmongUsClient.cs b/Client/Assembly-CSharp/AmongUsClient.cs
index f417c16..41f110e 100644
--- a/Client/Assembly-CSharp/AmongUsClient.cs
+++ b/Client/Assembly-CSharp/AmongUsClient.cs
@@ -312,6 +312,7 @@ public class AmongUsClient : InnerNetClient
}
}
+ // 删除某个角色对象gameobject
protected override void OnPlayerLeft(ClientData data, DisconnectReasons reason)
{
if (DestroyableSingleton<GameStartManager>.InstanceExists)
@@ -372,7 +373,7 @@ public class AmongUsClient : InnerNetClient
SceneManager.LoadScene(this.MainMenuScene);
}
- //c 切换场景
+ //c 切换场景时的回调
protected override void OnPlayerChangedScene(ClientData client, string currentScene)
{
client.InScene = true;