예제 #1
0
    private void OnStateExit(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
    {
        _teamManager.PlayerSequences[PlayerSequenceIndx.GetIndex(ParentName)].Value = AnimSequence.OnReadyExit;
        var target   = _teamManager.TargetPresenters[PlayerSequenceIndx.GetIndex(ParentName)].Target;
        var catchval = AnimIndexProvider.GetCatchBlendVal();

        animator.SetFloat("CatchBlend", catchval);
        target.anchoredPosition = AnimIndexProvider.GetTargetPos(catchval);

        var hitval = AnimIndexProvider.GetHitBlendVal();

        animator.SetFloat("HitBlend", hitval);
        var missval = AnimIndexProvider.GetCatchBlendVal();

        animator.SetFloat("MissBlend", missval);
    }
예제 #2
0
 private void OnStateExit(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
 {
     _teamManager.PlayerSequences[PlayerSequenceIndx.GetIndex(ParentName)].Value = AnimSequence.HitExit;
     //Debug.LogFormat("[{0}]  Hit/Miss Exit ",ParentName);
 }
예제 #3
0
 private void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
 {
     ParentName = animator.transform.parent.name;
     _teamManager.PlayerSequences[PlayerSequenceIndx.GetIndex(ParentName)].Value = AnimSequence.OnReadyEnter;
 }
예제 #4
0
 private void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex)
 {
     ParentName = animator.transform.parent.name;
     _teamManager.PlayerSequences[PlayerSequenceIndx.GetIndex(ParentName)].Value = AnimSequence.HitEnter;
     // Debug.LogFormat("[{0}]  Hit/Miss Enter ",ParentName);
 }