Created
May 21, 2017 02:43
-
-
Save atakotestudios/1069aa36d3ce2ff938a491708d3cdd2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class ScoreBoard : MonoBehaviour { | |
public GameManager gameManager; | |
private Text scoreText; | |
// Use this for initialization | |
void Start () { | |
scoreText = GetComponentInChildren<Text>(); | |
} | |
// Update is called once per frame | |
void Update () { | |
scoreText.text = "" + gameManager.score; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment