Example #1
0
    void OnCollisionEnter(Collision other)
    {
        Debug.Log("Collided");
        if (other.gameObject.tag == "Player" && player.Revives > 0)
        {
            player.FastDeath();

            if (player.Revives == 0)
            {
                player.DestroyPlayer();
                ghost1.DestroyGhost();
                ghost2.DestroyGhost();
                manager.DestroyManager();
            }
        }
    }