Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Score : MonoBehaviour
- {
- public int points = 0;
- private void OnGUI()
- {
- GUIStyle style = new GUIStyle();
- GUI.contentColor = Color.black;
- GUI.Label(new Rect(30, 10, 100, 20), ("<size=30>Score</size> : " + points), style);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement