Esempio n. 1
0
        public void Init()
        {
            var transforms  = GetComponentsInChildren <Transform>(true);
            var rigidbodies = GetComponentsInChildren <Rigidbody>(true);

            reinittable = new ReinittableTR(transform, transforms, rigidbodies);
            reinittable.Load();
        }
Esempio n. 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();
        }