Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Score : MonoBehaviour
  6. {
  7. public int points = 0;
  8.  
  9. private void OnGUI()
  10. {
  11. GUIStyle style = new GUIStyle();
  12. GUI.contentColor = Color.black;
  13. GUI.Label(new Rect(30, 10, 100, 20), ("<size=30>Score</size> : " + points), style);
  14.  
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement