Пример #1
0
    void Update()
    {
        if (health <= 0)
        {
            GameObject temp = this.gameObject;
            Destroy(GameObject.Find("Projectile(Clone)"));
            temp.SetActive(false);

            PlayerAttack.BoomUnlocked(2);
            GameEvents.current.LevelCompleted(2);
            winUI.SetActive(true);
        }
        snakeHP.text = "Snake HP: " + health;
    }