public void Init() { var transforms = GetComponentsInChildren <Transform>(true); var rigidbodies = GetComponentsInChildren <Rigidbody>(true); reinittable = new ReinittableTR(transform, transforms, rigidbodies); reinittable.Load(); }
public void Init() { Debug.Assert(mainRigidbody != null, "Main rigidbody is not set"); var transforms = GetComponentsInChildren <Transform>(true); var rigidbodies = GetComponentsInChildren <Rigidbody>(true); reinittable = new ReinittableTR(transform, transforms, rigidbodies); reinittable.Load(); }