From d653a7a8b6ec4efb40d39a455805880bf494e785 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 6 Jan 2021 18:58:27 +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/ShipStatus.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Client/Assembly-CSharp/ShipStatus.cs') diff --git a/Client/Assembly-CSharp/ShipStatus.cs b/Client/Assembly-CSharp/ShipStatus.cs index e83100f..e51a3d3 100644 --- a/Client/Assembly-CSharp/ShipStatus.cs +++ b/Client/Assembly-CSharp/ShipStatus.cs @@ -7,7 +7,8 @@ using InnerNet; using PowerTools; using UnityEngine; -//场景中的物件,包含门的开启等,在这里同步 +//c 场景中的物件,包含门的开启等,在这里同步 +// 这个结构由host玩家管理,所有者是host玩家,类似GameData public class ShipStatus : InnerNetObject { public ShipRoom[] AllRooms { get; private set; } @@ -699,7 +700,7 @@ public class ShipStatus : InnerNetObject // 关门 public void RpcCloseDoorsOfType(SystemTypes type) { - if (AmongUsClient.Instance.AmHost) + if (AmongUsClient.Instance.AmHost) { this.CloseDoorsOfType(type); return; @@ -712,8 +713,8 @@ public class ShipStatus : InnerNetObject // 修复 public void RpcRepairSystem(SystemTypes systemType, int amount) { - if (AmongUsClient.Instance.AmHost) - { + if (AmongUsClient.Instance.AmHost) + { this.RepairSystem(systemType, PlayerControl.LocalPlayer, (byte)amount); return; } -- cgit v1.1-26-g67d0