Exemple #1
0
    private void OnCollisionEnter(Collision collision)
    {
        if (collision.gameObject.CompareTag("Municion"))
        {
            arma.Recarga();
            collision.gameObject.SetActive(false);
        }

        if (collision.gameObject.CompareTag("Life"))
        {
            gm.Lifen();
            collision.gameObject.SetActive(false);
        }
    }