2021-09-24 00:34:18 -06:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
public class ScoreCounter : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
Text text;
|
2021-10-07 13:56:22 -06:00
|
|
|
|
public static int scoreAmount;
|
2021-09-24 00:34:18 -06:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
|
|
|
|
text = GetComponent<Text>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
void Update()
|
|
|
|
|
{
|
2021-10-21 12:51:40 -06:00
|
|
|
|
text.text = "SCORE\n" + scoreAmount.ToString();
|
2021-09-24 00:34:18 -06:00
|
|
|
|
}
|
|
|
|
|
}
|