summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/PlayerPhysics.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/PlayerPhysics.cs')
-rw-r--r--Client/Assembly-CSharp/PlayerPhysics.cs26
1 files changed, 14 insertions, 12 deletions
diff --git a/Client/Assembly-CSharp/PlayerPhysics.cs b/Client/Assembly-CSharp/PlayerPhysics.cs
index c751f0d..086529b 100644
--- a/Client/Assembly-CSharp/PlayerPhysics.cs
+++ b/Client/Assembly-CSharp/PlayerPhysics.cs
@@ -55,12 +55,6 @@ public class PlayerPhysics : InnerNetObject
public SkinLayer Skin;
- private enum RpcCalls
- {
- EnterVent,
- ExitVent
- }
-
public void Awake()
{
this.body = base.GetComponent<Rigidbody2D>();
@@ -281,6 +275,7 @@ public class PlayerPhysics : InnerNetObject
yield break;
}
+ // 无同步数据
public override bool Serialize(MessageWriter writer, bool initialState)
{
return false;
@@ -288,9 +283,10 @@ public class PlayerPhysics : InnerNetObject
public override void Deserialize(MessageReader reader, bool initialState)
{
- }
-
- public void RpcEnterVent(int id)
+ }
+
+
+ public void RpcEnterVent(int id)
{
if (AmongUsClient.Instance.AmClient)
{
@@ -310,9 +306,15 @@ public class PlayerPhysics : InnerNetObject
MessageWriter messageWriter = AmongUsClient.Instance.StartRpc(this.NetId, 1, SendOption.Reliable);
messageWriter.WritePacked(id);
messageWriter.EndMessage();
- }
-
- public override void HandleRpc(byte callId, MessageReader reader)
+ }
+
+ private enum RpcCalls
+ {
+ EnterVent,
+ ExitVent
+ }
+
+ public override void HandleRpc(byte callId, MessageReader reader)
{
if (callId == 0)
{