Пример #1
0
 public override void Init()
 {
     anim         = GetComponentInChildren <Animator>();
     rigidbody    = GetComponentInChildren <Rigidbody>();
     animatorHook = GetComponentInChildren <AnimatorHook>();
     animatorHook.Init(this);
     clothManager         = GetComponentInChildren <ClothManager>();
     anim.applyRootMotion = false;
 }
Пример #2
0
        public void Init()
        {
            ClothManager clothManager = GetComponentInParent <ClothManager>();

            clothManager.RegisterClothHook(this);
        }