I can't figure out how to stop pipes from moving after bird has died

I recently got into unity and I am at a stan still because I want to stop the pipes from moving after the bird has died to prevent the score from going up after losing. I’m really confused on what I should I have posted the code to the BirdScript and the PipeScript.

BirdScript.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BirdScript : MonoBehaviour
{
    public Rigidbody2D myRigidbody;
    public float flapStrenth;
    public LogicManager logic;
    public bool birdIsAlive = true;

    // Start is called before the first frame update
    void Start()
    {
        logic = GameObject.FindGameObjectWithTag("Logic").GetComponent<LogicManager>();
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space) && birdIsAlive )
        {
            myRigidbody.velocity = Vector2.up * flapStrenth;
        }
    }

    private void OnCollisionEnter2D(Collision2D collision)
    {
        logic.gameOver(); 
        birdIsAlive = false;
    }
}

PipeScript.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PipeScript : MonoBehaviour
{
    public float moveSpeed;
    public float deadZone = -15;
    public BirdScript birdScript;
    void Update()
    {
        transform.position = transform.position + (Vector3.left * moveSpeed) * Time.deltaTime;

        if (transform.position.x < deadZone)
        {
            Debug.Log("Pipe Deleated");
            Destroy(gameObject);
        }
    }
}

You have multiple answers:

  1. In the GameOver method in the LogicManager, you can add Time.timeScale=0 to stop the Update method. You can set it to one on scene reload or start.

  2. Add a gameOver boolean in the PipeScript and let the pipe movement in the update method run only if gameOver is false. You can add a SetGameOver method in the PipeScript that turns the boolean to true when you lose and call it from the GameOver method in LogicManager

when gameover method is triggered set the pipe move speed to 0