void Move(float h) { GetAnimator.SetInteger("Run", (int)h); if (h == 0) { return; } transform.localScale = new Vector3(h * 15, 15, 1); transform.Translate(Vector3.right * h * RunSpeed * Time.fixedDeltaTime); }