Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour {
Text ScoreField;
public int Score = 0;
void Awake ()
{
ScoreField = GetComponent<Text>();
Score = 0;
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
ScoreField.text = "Score: " + Score;
}
}