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