Facebook
From asfasf, 3 Years ago, written in C#.
Embed
Download Paste or View Raw
Hits: 153
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. [System.Serializable]
  7. public class GameHandler : MonoBehaviour
  8. {
  9.     public Text CoinText;
  10.     public int coins = 0;
  11.  
  12.     // Update is called once per frame
  13.     void Update()
  14.     {
  15.         CoinText.text = "Coins : " + coins;
  16.     }
  17. }
  18.