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; }
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; }