Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3.  
  4. public class ScriptJobs : MonoBehaviour
  5. {
  6.  
  7. public void SetText(string text)
  8. {
  9. Text txt = transform.Find("Text").GetComponent<Text>();
  10. txt.text = text;
  11. }
  12.  
  13.  
  14. public int balance;
  15.  
  16.  
  17. public void OnClick()
  18. {
  19. int balance = GameManager.balance + 100;
  20. }
  21.  
  22.  
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement