From 8edfcff56f9fa1eda8a1923467030082ed1df287 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Mon, 24 Mar 2025 17:29:41 +0200 Subject: [PATCH] updated variable name --- BoneSync/Player/PlayerRig.cs | 2 +- BoneSync/Sync/Components/SyncableBase.cs | 2 +- BoneSync/Sync/Components/SyncableNetworking.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BoneSync/Player/PlayerRig.cs b/BoneSync/Player/PlayerRig.cs index 75eaab4..7fea216 100644 --- a/BoneSync/Player/PlayerRig.cs +++ b/BoneSync/Player/PlayerRig.cs @@ -25,7 +25,7 @@ namespace BoneSync.Player { internal class PlayerRig { - private const float RIG_SYNC_FPS = Syncable.SYNC_FPS; + private const float RIG_SYNC_FPS = Syncable.OBJECT_SYNC_FPS; public static AssetBundle rigBundle; private static float _lastLocalSyncTime = 0; diff --git a/BoneSync/Sync/Components/SyncableBase.cs b/BoneSync/Sync/Components/SyncableBase.cs index 0665d83..684ebeb 100644 --- a/BoneSync/Sync/Components/SyncableBase.cs +++ b/BoneSync/Sync/Components/SyncableBase.cs @@ -59,7 +59,7 @@ namespace BoneSync.Sync.Components [RegisterTypeInIl2Cpp] public partial class Syncable : MonoBehaviour { - public const int SYNC_FPS = 20; + public const int OBJECT_SYNC_FPS = 20; public static Dictionary syncablesCache = new Dictionary(); public Syncable(IntPtr intPtr) : base(intPtr) { diff --git a/BoneSync/Sync/Components/SyncableNetworking.cs b/BoneSync/Sync/Components/SyncableNetworking.cs index f6aec5b..89b97bc 100644 --- a/BoneSync/Sync/Components/SyncableNetworking.cs +++ b/BoneSync/Sync/Components/SyncableNetworking.cs @@ -37,7 +37,7 @@ namespace BoneSync.Sync.Components TrySendAISync(); TrySendObjectSync(); TrySendPlugSync(); - yield return new WaitForSeconds(!Registered ? 1 : 1 / SYNC_FPS); + yield return new WaitForSeconds(!Registered ? 1 : 1 / OBJECT_SYNC_FPS); } _syncCoroutineRunning = false; yield break;