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

            clothManager.RegisterClothHook(this);
        }