Skip to content

Instantly share code, notes, and snippets.

@chabiribon
Created January 30, 2015 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chabiribon/67cabc03e291c5599336 to your computer and use it in GitHub Desktop.
Save chabiribon/67cabc03e291c5599336 to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
public class Score : Global {
GUIStyle labelStyle;
// Update is called once per frame
void Update () {
}
void OnGUI()
{
string text = (score).ToString ();
GUI.Label (new Rect (140, 0, 100, 30), "Score " + text, labelStyle);
}
void Start()
{
labelStyle = new GUIStyle ();
labelStyle.fontSize = 100;
labelStyle.normal.textColor = Color.white;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment