From 59755580acab0de7bfc88482b6a515b546d45cd7 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 2 Jan 2021 01:22:42 +0800 Subject: =?UTF-8?q?*=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assembly-CSharp/AmongUsClient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Client/Assembly-CSharp/AmongUsClient.cs') 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.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; -- cgit v1.1-26-g67d0