high score table working after lose

This commit is contained in:
2023-03-21 17:13:35 +01:00
parent d8a4886d59
commit e67b97f424
16 changed files with 281 additions and 194 deletions

View File

@@ -13,12 +13,10 @@ public class fps : MonoBehaviour
// Update is called once per frame
void Update()
{
#if UNITY_EDITOR
if (Time.unscaledTime > _timer) {
int fps = (int)(1f / Time.unscaledDeltaTime);
fpsText.text = "FPS: " + fps;
_timer = Time.unscaledTime + _hudRefreshRate;
}
#endif
}
}