private void OnTriggerEnter2D(Collider2D other) { if (other.tag == ASTEROID) { if (transform.parent != null) { Destroy(transform.parent.gameObject); } } if (other.tag == LASER) { Instantiate(_explosonPrefab, transform.position, Quaternion.identity); Destroy(other.gameObject); Destroy(this.gameObject, 0.12f); Spawn_Manager.SpawnRoutines(); } else if (other.name == PLAYER) { return; } }