From 4bbe62b90e4081b9328893b36fe0902565f66724 Mon Sep 17 00:00:00 2001 From: in0finite Date: Sun, 1 May 2022 07:08:21 +0200 Subject: [PATCH] ... --- Assets/Scripts/Networking/CustomNetworkTransform.cs | 5 ----- Assets/Scripts/Networking/TransformSyncer.cs | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/Assets/Scripts/Networking/CustomNetworkTransform.cs b/Assets/Scripts/Networking/CustomNetworkTransform.cs index 7777b0b8..83944331 100644 --- a/Assets/Scripts/Networking/CustomNetworkTransform.cs +++ b/Assets/Scripts/Networking/CustomNetworkTransform.cs @@ -21,11 +21,6 @@ namespace SanAndreasUnity.Net m_transformSyncer = new TransformSyncer(m_transformToSync, m_transformSyncParameters, this); } - public override void OnStartClient() - { - m_transformSyncer.OnStartClient(); - } - public override bool OnSerialize(NetworkWriter writer, bool initialState) { return m_transformSyncer.OnSerialize(writer, initialState); diff --git a/Assets/Scripts/Networking/TransformSyncer.cs b/Assets/Scripts/Networking/TransformSyncer.cs index 61bf5751..c300d590 100644 --- a/Assets/Scripts/Networking/TransformSyncer.cs +++ b/Assets/Scripts/Networking/TransformSyncer.cs @@ -84,16 +84,6 @@ namespace SanAndreasUnity.Net m_hasRigidBody = m_rigidbody != null; } - public void OnStartClient() - { - if (NetUtils.IsServer) - return; - - // apply initial sync data - // first sync should've been done before calling this function, so the data is available - - } - public bool OnSerialize(NetworkWriter writer, bool initialState) { byte flags = 0;