示例#1
0
        public void Init()
        {
            var transforms  = GetComponentsInChildren <Transform>(true);
            var rigidbodies = GetComponentsInChildren <Rigidbody>(true);

            reinittable = new ReinittableTR(transform, transforms, rigidbodies);
            reinittable.Load();
        }
示例#2
0
        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();
        }