updated variable name
This commit is contained in:
@@ -25,7 +25,7 @@ namespace BoneSync.Player
|
|||||||
{
|
{
|
||||||
internal class PlayerRig
|
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;
|
public static AssetBundle rigBundle;
|
||||||
private static float _lastLocalSyncTime = 0;
|
private static float _lastLocalSyncTime = 0;
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ namespace BoneSync.Sync.Components
|
|||||||
[RegisterTypeInIl2Cpp]
|
[RegisterTypeInIl2Cpp]
|
||||||
public partial class Syncable : MonoBehaviour
|
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 static Dictionary<GameObject, Syncable> syncablesCache = new Dictionary<GameObject, Syncable>();
|
||||||
public Syncable(IntPtr intPtr) : base(intPtr) {
|
public Syncable(IntPtr intPtr) : base(intPtr) {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace BoneSync.Sync.Components
|
|||||||
TrySendAISync();
|
TrySendAISync();
|
||||||
TrySendObjectSync();
|
TrySendObjectSync();
|
||||||
TrySendPlugSync();
|
TrySendPlugSync();
|
||||||
yield return new WaitForSeconds(!Registered ? 1 : 1 / SYNC_FPS);
|
yield return new WaitForSeconds(!Registered ? 1 : 1 / OBJECT_SYNC_FPS);
|
||||||
}
|
}
|
||||||
_syncCoroutineRunning = false;
|
_syncCoroutineRunning = false;
|
||||||
yield break;
|
yield break;
|
||||||
|
|||||||
Reference in New Issue
Block a user