public void OnGUI() { int lives = lifeMaintain.getPlayerLives(); int points = scoreKeeper.getPlayerPoints(); GUI.Label(new Rect(5.0f, 3.0f, 200.0f, 200.0f), "Live's: " + lives + " Score: " + points); }