Пример #1
0
    void Awake()
    {
        _ik       = this.GetComponentInChildren <IKManager>();
        _animator = this.GetComponentInChildren <Animator>();

        _callbackManager = this.GetComponentInChildren <AnimatorEventCallbackManager>();
        _callbackManager.OnAnimationEventCalled += OnAnimationEventCalled;

        _animator.SetLayerWeight(2, 0f);

        GatherRenderers();
    }
Пример #2
0
 void Awake()
 {
     _callbackManager = this.GetComponentInChildren <AnimatorEventCallbackManager>();
     _callbackManager.OnAnimationEventCalled += OnAnimationEventCalled;
 }