This commit is contained in:
Michał Gdula 2022-05-15 00:03:31 +01:00
parent 90cf5a6112
commit 24501eac1e
13 changed files with 83 additions and 208 deletions

18
endScreenScore.cs Normal file
View file

@ -0,0 +1,18 @@
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);
}
}