Beispiel #1
0
    void Update()
    {
        var gos = GameObject.FindGameObjectsWithTag("Enemies");

        enemies.text = "Enemies Left:" + gos.Length;
        health.text  = "Health:" + player.health;
        if (gos.Length == 0)
        {
            root.InitWin();
            enemies.gameObject.SetActive(false);
            health.gameObject.SetActive(false);
        }
    }