// Update is called once per frame void Update() { displayTime.text = "" + gameState.GetTime(); if (gameState.GetState() == 0) { displayObjective.text = "Find the bar and get some drinks!"; } else if (gameState.GetState() == 1) { displayObjective.text = "Find your friends without spilling the drinks!\nCurrent drinks level: " + gameState.GetBeer(); } else if (gameState.GetState() == 2) { displayObjective.text = "Congratulations! Enjoy the show!"; displauyBeerResult.text = "" + gameState.GetFinalbeer(); displayTimeResult.text = "" + gameState.GetFinalTime(); DisplayResults(); } }