void Awake() { _ik = this.GetComponentInChildren <IKManager>(); _animator = this.GetComponentInChildren <Animator>(); _callbackManager = this.GetComponentInChildren <AnimatorEventCallbackManager>(); _callbackManager.OnAnimationEventCalled += OnAnimationEventCalled; _animator.SetLayerWeight(2, 0f); GatherRenderers(); }
void Awake() { _callbackManager = this.GetComponentInChildren <AnimatorEventCallbackManager>(); _callbackManager.OnAnimationEventCalled += OnAnimationEventCalled; }