private void Update() { if (CannonManager.instance.gameState == CoffeeMakerGameState.Victory) { endingText.text = "Congratulations. You win the game\n" + $"{cup.GetStatistics()}"; } if (CannonManager.instance.gameState == CoffeeMakerGameState.Failure) { endingText.text = "Sorry, you lose the game\n" + $"{cup.GetStatistics()}"; } }