Ejemplo n.º 1
0
 //Credit to Jared Cerbin for coming up with this GUI stuff.
 void OnGUI()
 {
     // Display the GUI only if the game is not paused. Take this out of the 'if' to see why. - Jared
     if (!isPaused)
     {
         Vector2 labelPos = Camera.main.WorldToScreenPoint(transform.position);
         GUI.Label(new Rect(labelPos.x, Screen.height - labelPos.y - 30, 50, 20), ResourceLoad.ToString("F0")); //I did a slight tweak to not draw the decimial portion of the resource thinger. - Moore
     }
 }