public void Show(bool hasWon) { if (!gameObject.activeSelf) { bricksDestroyed.text = _scoreHelper.GetMovesMade().ToString(); header.text = hasWon ? "LEVEL COMPLETE" : "LEVEL LOST"; header.color = hasWon ? wonHeaderColor : lostHeaderColor; gameObject.SetActive(true); } }
private void Update() { UpdateScore(_scoreHelper.GetMovesMade()); }