// Update is called once per frame
        void Update()
        {
            if (transform.position.x > threshold * 10)
            {
                levelController.CreateObstacleRandomly(transform.position.x);
                threshold++;
            }

            if (isAlive && Input.GetKeyDown(KeyCode.Space))
            {
                rb2d.AddForce(new Vector2(1 * kickForce_X, 1 * kickForce_Y));
                anim.Play("PlayerFlap2");
                wingAudio.Play();
            }
        }