Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class gold : MonoBehaviour {
- public int Gold;
- public Text pointsText;
- void Update () {
- pointsText.text = ("Gold : " + Gold );
- }
- void OnTriggerEnter (Collider col)
- {
- if (col.CompareTag ("Gold")) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement