void Update() { if (Next()) { DestroyObjects(_pipes.GetPipes()); _pipeDirection.sensitivity = 3; _pipeDirection.IsEnterPlast = false; Vector3 startPos = new Vector3(0, 13.6f, 0); _pipeDirection.Position = startPos; _pipeDirection.PipeStart(); DestroyObjects(_points); Spawn(); } scoreText.text = $"{_towerComponent.GetScore()}"; if (Input.GetKey(KeyCode.Escape) && panelExit != null) { panelExit.SetActive(true); } }