blob: eefa9613611c9f218c3f3ba78c055fe888febc62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System.Collections.Generic;
using UnityEngine;
namespace Rigging.Data
{
// ±£´æËùÓÐ14¸ö¹Ç÷À
public class RigidbodyHolder : RiggingDataBase
{
public Transform rootBone;
public Rigidbody[] allRigs;
private void Start()
{
allRigs = rootBone.gameObject.GetComponentsInChildren<Rigidbody>();
}
private void Update()
{
}
public Rigidbody[] GetAllRigs()
{
return allRigs;
}
}
}
|