private void OnTriggerEnter(Collider other) { if (!_endGame && other.gameObject.GetComponent <Ball>()) { _restartGame.GetComponent <Animator>().Play("StartRestartGame"); _endGame = true; } }
private void OnTriggerEnter(Collider other) { if (!_endGame && other.gameObject.GetComponent <Ball>()) { _restartGame.GetComponent <Animator>().Play("StartRestartGame"); _endGame = true; } }