WACK-A-MOLE QUEST: ‘Stop The Party’ - Solutions

Quest: Wack-A-Mole Quest
Challenge: Stop The Party

Feel free to share your solutions, ideas and creations below. If you get stuck, you can find some ideas here for completing this challenge.

Alright, feeling much better about knocking these out. Looks like we already had a Bool for use in Scorer.cs

    void Update()
    {
        if (transform.childCount == 0 && hasChildren)
        {
            celebration.Play();
            hasChildren = false;
        }
    }
2 Likes

You could also do this:

        if (transform.childCount == 0)
        {
            celebration.Play();
            Destroy(gameObject, celebration.main.duration);
        }
1 Like

Came up with the same solution.