void OnTriggerEnter(Collider col) { if (col.tag != "border") { Destroy(col.gameObject); Destroy(gameObject); Instantiate(explosion, transform.position, transform.rotation); control.addScore(10); } if (col.tag == "Player") { Instantiate(playerexplosion, col.transform.position, col.transform.rotation); control.gameover(); } }