private void OnTriggerEnter2D(Collider2D other) { if (this.gameObject.CompareTag(("EnemyCollider"))) { if (other.gameObject.CompareTag("Player")) { _gameController.EndGame(); } else if (other.gameObject.CompareTag("bullet")) { Destroy(other.gameObject); } return; } if (other.gameObject.CompareTag("Player")) { _gameController.EndGame(); } else if (other.gameObject.CompareTag("bullet")) { _pointController.Add(); Destroy(this.gameObject); } else if (other.gameObject.CompareTag("Finish")) { _gameController.EndGame(); } }