예제 #1
0
    void OnCollisionEnter(Collision col)
    {
        if (col.gameObject.tag == "Obstacle")
        {
            gameObject.SetActive(false);
            isDead = true;

            deathMenu.ToggleEndMenu();
            pauseScript.buttonToggleOff();
            scoreScript.TurnScoreOff();
        }
    }