Exemplo n.º 1
0
    void OnTriggerEnter2D(Collider2D collider)
    {
        if (collider.CompareTag("Player"))
        {
            powerUp.Activation(false, false, true, false, 1, growth, timer);
            sr.sprite = null;
            text.text = "Obtained " + name + "! \n" + description;

            StartCoroutine("delay");
        }
    }