Пример #1
0
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.collider.tag == "EndDonjon")
        {
            Destroy(collision.gameObject);
            bossManager.phase = BossPhase.phase2;
            bossManager.ShowQTE();
        }

        if (collision.collider.tag == "Trap")
        {
            bossManager.EndGame(false);
            transform.GetChild(0).SetParent(transform.parent);
            Destroy(gameObject);
        }
    }