Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class ScoreManager : MonoBehaviour
- {
- public static int score;
- Text text;
- void Awake()
- {
- text = GetComponent<Text>();
- score = 0;
- }
- void Update()
- {
- text.text = "Score: " + score;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement