void FixedUpdate() { isGrounded = Physics2D.OverlapCircle(groundCheck.position, checkRadius, whatIsGround); if (UpgradeController.GetSpeedUp()) { speed = updateSpeed; } if (!knockback && photonView.IsMine) { if (photonView.IsMine) { moveInput = joystick.Horizontal; rb.velocity = new Vector2(moveInput * speed, rb.velocity.y); animator.SetFloat("Speed", Mathf.Abs(moveInput * speed)); } } if (facingRight == false && rb.velocity.x > 0) { base.Flip(); } else if (facingRight == true && rb.velocity.x < 0) { base.Flip(); } }