Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using UnityEngine;
- using UnityEngine.UI;
- public class PlayerStats : MonoBehaviour {
- public string playerElement;
- public static int playerEssence;
- public static int playerLives;
- public int startPlayerEssence;
- public int startPlayerLives;
- public Text essenceText;
- public Text livesText;
- void Start () {
- playerEssence = startPlayerEssence;
- playerLives = startPlayerLives;
- }
- void Update () {
- essenceText.text = "Essence: " + playerEssence;
- livesText.text = "Lives " + playerLives;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment