mirror of
https://github.com/Fluffy-Bean/Again.git
synced 2025-05-14 13:12:16 +00:00
18 lines
407 B
C#
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);
|
|
}
|
|
}
|