Newer
Older
HardPoint-Project-Abertay-University-Unity3D / Assets / Scripts / UI / CurrencyUI.cs
@Rackday Rackday on 18 Aug 353 bytes Project Added
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class CurrencyUI : MonoBehaviour
{
    Text text;
    void Start()
    {
        text= GetComponent<Text>();
    }
    // Update is called once per frame
    void Update()
    {
        text.text = "Currency: " + PlayerStatus.currency;
    }
}