ReplayPuzzleGame/Assets/Scripts/Utility/UpdateFpsUI.cs

23 lines
368 B
C#
Raw Normal View History

2026-02-03 13:18:08 +00:00
using UnityEngine;
using UnityEngine.UI;
public class UpdateFpsUI : MonoBehaviour
{
private Text fpsText;
private float frameCount = 0;
private float deltaTime = 0f;
private float fps = 0f;
void Start()
{
2026-02-09 00:14:40 +00:00
Application.targetFrameRate = 70;
2026-02-03 13:18:08 +00:00
fpsText = transform.GetComponent<Text>();
}
void Update()
{
}
}