updated variable name

This commit is contained in:
Aaro Varis
2025-03-24 17:29:41 +02:00
parent e29f0ebb70
commit 8edfcff56f
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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<GameObject, Syncable> syncablesCache = new Dictionary<GameObject, Syncable>();
public Syncable(IntPtr intPtr) : base(intPtr) {

View File

@@ -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;