void OnTriggerEnter(Collider other) { if (other.CompareTag("Boundary") || other.CompareTag("Enemy")) { return; } if (explosion != null) { Instantiate(explosion, transform.position, transform.rotation); } if (other.tag == "Player") { Instantiate(Player_explosion, other.transform.position, other.transform.rotation); gamecontroller.Game_Over(); } Destroy(other.gameObject); Destroy(gameObject); gamecontroller.Add_Score(scoreValue); }