Пример #1
0
 public void PlayIdleLeft()
 {
     animator.SetBool("up", false);
     animator.SetBool("down", false);
     animator.SetBool("horizontal", true);
     transform.localScale = new Vector3(-beginScale.x, beginScale.y, beginScale.z);
     prevAnim             = PlayIdleLeft;
 }
Пример #2
0
 public void PlayIdleUp()
 {
     animator.SetBool("up", true);
     animator.SetBool("down", false);
     animator.SetBool("horizontal", false);
     animator.SetBool("attack", false);
     isPlayingAttack      = false;
     attackTimer          = 0;
     transform.localScale = new Vector3(beginScale.x, beginScale.y, beginScale.z);
     prevAnim             = PlayIdleUp;
 }