internal static void OnUpdateDynamics() { foreach (DynamicBoneSync dynamicBoneSync in GlobalDynamicBones.dynamicBones) { dynamicBoneSync.active = false; } GlobalDynamicBones.myColliders = GlobalDynamicBones.GetHandColliders(VRCPlayer.Instance); GlobalDynamicBones.myBones = VRCPlayer.Instance.GetComponentsInChildren <DynamicBone>(true); Debug.Log(string.Format("DynamicBoneSync: MyDynamicBones: {0} + MyColliders: {1}", GlobalDynamicBones.myBones.Length, GlobalDynamicBones.myColliders.Length)); }
internal void OnUpdateDynamics() { this.player = base.GetComponent <VRC.Player>(); if (this.player == null) { return; } if (!(this.player != PlayerManager.GetCurrentPlayer())) { GlobalDynamicBones.OnUpdateDynamics(); return; } GlobalDynamicBones.RemoveColliders(GlobalDynamicBones.myBones, this.colliders); this.bones = base.GetComponentsInChildren <DynamicBone>(true); this.colliders = GlobalDynamicBones.GetHandColliders(this.player.vrcPlayer); this.active = false; }