Пример #1
0
 public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     var commonController = animator.GetComponent<CommonMenuController>();
     commonController.MainMenuAnimator.SetBool("IsActive", false);
     commonController.OptionsMenuAnimator.SetBool("IsActive", true);
     commonController.AboutMenuAnimator.SetBool("IsActive", false);
 }
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     animator.GetComponent<CharController>().Unlock();
 }
 public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     base.OnStateEnter(animator, stateInfo, layerIndex);
     animator.SetBool(CharController.AttackTrigger, false);
     animator.GetComponent<CharController>().Lock();
 }
 public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller)
 {
     base.OnStateExit(animator, stateInfo, layerIndex, controller);
     animator.GetComponent<Exit>().Open();
 }