提交测试代码

This commit is contained in:
Bob.Song
2026-03-06 10:17:57 +08:00
parent 36067705f2
commit 06529f672b
3 changed files with 41 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ public sealed class SocialUnitDestroySystem : DestroySystem<SocialUnit>
{
protected override void Destroy(SocialUnit self)
{
self.Role.Return();
self.Role?.Return();
self.Role = null;
self.GateRouteId = 0;
// 退出当前ChatUnit拥有的所有频道