void StartWallRunning(float direction) { isWallRunning = true; //Left if (direction == -1) { //playerRB.AddForce(transform.up * jumpForce, ForceMode.Impulse); playerRB.useGravity = false; wallRunningTimer = 0f; pAniController.DoWallRunAnimation(-1); } else if (direction == 1) { playerRB.useGravity = false; wallRunningTimer = 0f; pAniController.DoWallRunAnimation(1); } }