Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4.  
  5. public class gold : MonoBehaviour {
  6. public int Gold;
  7.  
  8.  
  9. public Text pointsText;
  10.  
  11.  
  12. void Update () {
  13. pointsText.text = ("Gold : " + Gold );
  14.  
  15.  
  16. }
  17. void OnTriggerEnter (Collider col)
  18. {
  19. if (col.CompareTag ("Gold")) {
  20.  
  21.  
  22. }
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement