void UpdatePlayer() { //Movement if (Input.GetKey(movLeft)) { movement.MoveLeft(); } else if (Input.GetKey(movRight)) { movement.MoveRight(); } if (Input.GetKey(movRight) && Input.GetKey(dash) || Input.GetKey(movLeft) && Input.GetKey(dash)) { movement.Dash(); } if (!Input.GetKey(movLeft) && !Input.GetKey(movRight)) { movement.SlowDown(); } if (Input.GetKey(jump1) || Input.GetKey(jump2)) { movement.Jump(); } if (Input.GetKeyDown(attack)) { playerAttack.AddCombo(); } }