21 lines
467 B
C#
21 lines
467 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class ScoreCounter : MonoBehaviour
|
|
{
|
|
Text text;
|
|
public static int scoreAmount;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
text = GetComponent<Text>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
text.text = "SCORE: " + scoreAmount.ToString();
|
|
}
|
|
}
|