private void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "Enemy") { _gameManager.HP -= 1; if (_gameManager.HP <= 0) { sceneManager.GameOver(); } } }
private void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "Enemy") { _gameManager.HP -= 1; if (_gameManager.HP <= 0) { sceneManager.GameOver(); } } }