// Update is called once per frame void Update() { if (cannonController.IsCannonBallLoaded) { cannonBallText.text = "Loaded"; } else { cannonBallText.text = "NONE"; } cannonAngleText.text = cannonController.GetCannonAngle() + "%"; powderText.text = cannonController.GetPowder() + " g"; ShootHistory shootHistory = SceneManager.Instance.GetLastShoot(); if (shootHistory != null) { displayText.text = "Last Shoot: Angle = " + shootHistory.GetAngle() + " Cannonball = " + shootHistory.GetCannonBall() + " Gunpowder = " + shootHistory.GetPowder() + " Shoot Distance = " + shootHistory.GetShotDistance(); } }