updated variable name
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user