private void Update() { if (GameObject.FindGameObjectsWithTag("StandardBlock").Length + GameObject.FindGameObjectsWithTag("BonusBlock").Length + GameObject.FindGameObjectsWithTag("PickUpBlock").Length == 1) { EventManager.AddBlockDestroyListerner(GameOverMenu); } }