Beispiel #1
0
    private void OnCollisionEnter(Collision collision)
    {
        if (m_levelDesigner.GetCombo() > 3)
        {
            Destroy(collision.collider.gameObject);
        }
        else if (collision.collider.gameObject.tag == "Trap")
        {
            Lose();
        }
        else if (collision.collider.gameObject.tag == "Arrival")
        {
            Win();
        }

        m_levelDesigner.ResetCombo();
    }