23 lines
592 B
C#
23 lines
592 B
C#
using System;
|
|
using SLSFramework.General;
|
|
using SLSFramework.UI;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace Cielonos.UI
|
|
{
|
|
public class PlayerCanvas : Singleton<PlayerCanvas>
|
|
{
|
|
public Canvas canvas;
|
|
public TMP_Text frameRateText;
|
|
public MainWeaponUIArea mainWeaponUIArea;
|
|
public PlayerInfoUIArea playerInfoUIArea;
|
|
public BossInfoUIArea bossInfoUIArea;
|
|
|
|
private void Update()
|
|
{
|
|
float currentFPS = 1.0f / Time.unscaledDeltaTime;
|
|
frameRateText.text = $"FPS: {Mathf.RoundToInt(currentFPS)}";
|
|
}
|
|
}
|
|
} |