update plugin

This commit is contained in:
CroakFang
2023-06-29 15:34:20 +08:00
parent b53035de82
commit 05a7afe25a
1469 changed files with 1264644 additions and 251 deletions
@@ -0,0 +1,23 @@
using UnityEngine;
using System.Collections;
namespace RootMotion.Dynamics {
public class JointBreakBroadcaster : MonoBehaviour {
/// <summary>
/// The PuppetMaster that this muscle belongs to.
/// </summary>
[SerializeField][HideInInspector] public PuppetMaster puppetMaster;
/// <summary>
/// The index of this muscle in the PuppetMaster.muscles array.
/// </summary>
[SerializeField][HideInInspector] public int muscleIndex;
void OnJointBreak() {
if (!enabled) return;
puppetMaster.RemoveMuscleRecursive(puppetMaster.muscles[muscleIndex].joint, true, true, MuscleRemoveMode.Numb);
}
}
}