Esempio n. 1
0
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.gameObject.tag == "Base")
        {
            bScript.LiveReduction();
        }
        if (collision.gameObject.tag == "Missle")
        {
            bScript.ScoreIncrement();
        }


        Instantiate(explosionPrefab, this.transform.position, Quaternion.identity);
        Destroy(this.gameObject);
    }