void Move() { inputHor = Input.GetAxisRaw("Horizontal"); //Get Input //Sprite Stuff playerSpriteManager.FlipSprite(inputHor); //if the Player hit a wall in the same direction of movement don't allow any other movement if (BlockedInput != inputHor) { //Player is away from the wall BlockedInput = 0; transform.Translate(Vector3.right * inputHor * Speed * Time.deltaTime); playerSpriteManager.SetMoving(); } else { playerSpriteManager.SetIdle(); } }