Пример #1
0
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        ai         = animator.GetComponent <JumpRaptor>();
        perception = animator.GetComponent <Perception>();
        transform  = animator.transform;

        targetTimer = ai.targetResetTime;

        ai.SetRandomGoal();
    }
Пример #2
0
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     ai              = animator.GetComponent <JumpRaptor>();
     perception      = animator.GetComponent <Perception>();
     targetTransform = perception.targetTransform;
 }