ShowPoint.cs
425 Bytes
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ShowPoint : MonoBehaviour
{
[SerializeField] Text pointText;
public static int point;
public static int point2;
void Start()
{
point = 0;
}
void Update()
{
point = 1000 * ScoreCount.currentScore + point2;
pointText.text = "Point: " + point;
}
}