Advertisement
shadowplaycoding

P031_UIResourceManager

Sep 16th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class UIResourceManager : MonoBehaviour {
  7.  
  8.     public static UIResourceManager instance;
  9.  
  10.     public Text creditsText;
  11.     public Text mineralsText;
  12.     public Text foodText;
  13.  
  14.     void Awake()
  15.     {
  16.         instance = this;
  17.     }
  18.  
  19.     // Use this for initialization
  20.     void Start() {
  21.  
  22.     }
  23.  
  24.     public void UpdateText(Text text, int amount)
  25.     {
  26.         text.text = amount.ToString();
  27.     }
  28.  
  29.     /*
  30.     Copyright Shadowplay Coding 2018 - see www.shadowplaycoding.com for licensing details
  31.     Removing this comment forfits any rights given to the user under licensing.
  32.     */
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement