Advertisement
sphinx2001

HUD.cs

Feb 5th, 2021
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class HUD : MonoBehaviour
  6. {
  7.     private void OnGUI()
  8.     {
  9.         GUI.Box(new Rect(10, 10, 100, 90),
  10.             $"HP: {GameSystem.HP}\n " +
  11.             $"Money: {GameSystem.Money}\n " +
  12.             $"Monsters: {GameSystem.MonsterCount}");
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement