lvl win & lvl lose windows

Hello! Ive stuck with problem to write a code for “LevelWinWindow” & “LevelLoseWindow”. Now Im in process about lvllosewindow. And i dont know how create logic that i need. Should appear window with “lose” after char dies, and “win” when he got 100 kills. code for “lose” looks like this:
Script HUD.

public class HUD : MonoBehaviour {

    [SerializeField]
    public GameObject loseWindow;

    //private GameObject LevelLoseWindow;

    public void ShowWindow(GameObject loseWindow)
    {
        loseWindow.SetActive(true);
        //ControlCH.Instance.State = GameState.Pause;
    }

    public void ShowLevelLoseWindow()
    {
       // loseWindow.alpha = 1.0f;
        ShowWindow(loseWindow);
    }


    static private HUD _instance;

    public static HUD Instance
    {
        get
        {
            return _instance;
        }
    }
    private void Awake()
    {
        _instance = this;
    }

    public void ButtonRestart()
    {

    }

    
}

And script for Character:

 public void GameOver()
    {
        HUD.Instance.ShowLevelLoseWindow();
    }



 public void Destroyed()
    {
            GameOver();
        
        //SceneManager.LoadScene(SceneManager.GetActiveScene().name);
    }

Any ideas ? plz =(

OK, for the char when dead. You want to firstly check the gameObject (char) is not active then if the gameObject (char) is not active show the Lose window (in the char script):

 void Lose()
        {
            if (!gameObject.activeSelf)
            {
                //show Lose window
            }
        }

Second, in order to check whether the char has won you are going to need an int which stores the number of kills.:

void Update()
    {
        if (numOfKills == 100)
        {
            won();
        } 
    }

    void won()
    {
        //all you need is to show win.
    }

Although you will need to increase the number of kills everytime your char kills an enemy.

I hope this is what you meant, if not just say and I’ll get back to you.