AgainTheGame/endScreenScore.cs
2022-05-15 00:03:31 +01:00

18 lines
407 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class endScreenScore : MonoBehaviour
{
TextMeshProUGUI textBox;
public float endTime = 0;
void Start()
{
Cursor.lockState = CursorLockMode.None;
endTime = PlayerPrefs.GetFloat("timeScore");
textBox = GetComponent<TextMeshProUGUI>();
textBox.SetText("Time: {0}s", endTime);
}
}