I want to stop the game and put the phrase "Game Over" when the hp gauge reaches 0

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

public class ArrowController : MonoBehaviour
{
    public GameObject GameOverObject;
    GameObject player;

    // Start is called before the first frame update
    void Start()
    {
        this.player = GameObject.Find("player");
        
    }

    // Update is called once per frame
    void Update()
    {
        
        transform.Translate(0, -0.1f, 0);

        
        if(transform.position.y<-5.0f)
        {
            Destroy(gameObject);
        }

        
        Vector2 p1 = transform.position;              
        Vector2 p2 = this.player.transform.position; 
        Vector2 dir = p1 - p2;
        float d = dir.magnitude;
        float r1 = 0.5f;                             
        float r2 = 1.0f;                             

        if(d<r1+r2)
        {
            GameObject director = GameObject.Find("GameDirector");
            director.GetComponent<GameDirector>().DecreaseHp();

            Destroy(gameObject);
           
        }
    }
}

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

public class GameDirector : MonoBehaviour
{
    GameObject hpGauge;
    GameObject gameover;
    float circleAmount;
    // Start is called before the first frame update
    void Start()
    {
        
        this.hpGauge = GameObject.Find("hpGauge");
        this.gameover = GameObject.Find("Gameover");
        circleAmount = 1.0f;
    }

    // Update is called once per frame
    public void DecreaseHp()
    {
        this.hpGauge.GetComponent<Image>().fillAmount -= 0.1f;
        circleAmount -= 0.1f;
       
        if(circleAmount==0)
        {
            this.gameover.GetComponent<Text>().text="Game Over !";
        }
    }
}

Some reasons for getting a post rejected:


There exists duplicate questions with answers if you were to do a search, either on Answers or on the Forum or on Unity tutorials

Your post does not have a correct structure: Title is the most important thing, A title must explain in one sentence whats your problem about, so experts in that topic can enter to read the post, Inside post main body, you must explain When, Where, How, Why you problem occurs

Your question isnt specific enough: asking for a script, asking multiple questions in one post or asking a question that could be either subjective or require extensive discussion

Your question is about very basic issues, that can be learned just by searching in google or in multiple basic tutorials for begginers