Skip to content

Instantly share code, notes, and snippets.

@atakotestudios
Created May 21, 2017 02:43
Show Gist options
  • Save atakotestudios/1069aa36d3ce2ff938a491708d3cdd2a to your computer and use it in GitHub Desktop.
Save atakotestudios/1069aa36d3ce2ff938a491708d3cdd2a to your computer and use it in GitHub Desktop.
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