Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / UI / CurrencyUI.cs
@Rackday Rackday on 18 Aug 353 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class CurrencyUI : MonoBehaviour
  6. {
  7. Text text;
  8. void Start()
  9. {
  10. text= GetComponent<Text>();
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. text.text = "Currency: " + PlayerStatus.currency;
  16. }
  17. }