コード例 #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;
 }