예제 #1
0
    void Update()
    {
        //if (music)
        //{
        //    if (!audioBG.isPlaying) { audioBG.PlayOneShot(soundBG); }
        //}
        //else if (!music)
        //{
        //    audioBG.Stop();
        //}

        if (!gameOver)
        {
            if (!player.IsAlive())
            {
                BabyWin();
            }

            if (!baby.IsAlive())
            {
                PlayerWin();
            }
        }
    }