mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Minor: formatting fixes.
This commit is contained in:
parent
e11dea1497
commit
c94cad7403
@ -42,7 +42,7 @@ namespace Spine.Unity.Examples {
|
||||
public class SkeletonRagdoll2D : MonoBehaviour {
|
||||
static Transform parentSpaceHelper;
|
||||
|
||||
#region Inspector
|
||||
#region Inspector
|
||||
[Header("Hierarchy")]
|
||||
[SpineBone]
|
||||
public string startingBoneName = "";
|
||||
@ -72,7 +72,7 @@ namespace Spine.Unity.Examples {
|
||||
[Range(0, 1)]
|
||||
public float mix = 1;
|
||||
public bool oldRagdollBehaviour = false;
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
ISkeletonAnimation targetSkeletonComponent;
|
||||
Skeleton skeleton;
|
||||
@ -110,7 +110,7 @@ namespace Spine.Unity.Examples {
|
||||
}
|
||||
}
|
||||
|
||||
#region API
|
||||
#region API
|
||||
public Rigidbody2D[] RigidbodyArray {
|
||||
get {
|
||||
if (!isActive)
|
||||
@ -299,7 +299,7 @@ namespace Spine.Unity.Examples {
|
||||
var bone = skeleton.FindBone(boneName);
|
||||
return (bone != null && boneTable.ContainsKey(bone)) ? boneTable[bone].GetComponent<Rigidbody2D>() : null;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
/// <summary>Generates the ragdoll simulation's Transform and joint setup.</summary>
|
||||
void RecursivelyCreateBoneProxies (Bone b) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user