Advertisement
Ch0nG

OnGUI

Aug 21st, 2014
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class InfoGUI : MonoBehaviour {
  5.  
  6.     void OnGUI()
  7.     {
  8.         GUI.Box(new Rect(20, 20, 120, 30), "Score: " + Player.score + " Lives: " + Player.playerLives);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement