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