阶段性完成
This commit is contained in:
23
Assets/Scripts/MainGame/UI/PlayerUI/PlayerCanvas.cs
Normal file
23
Assets/Scripts/MainGame/UI/PlayerUI/PlayerCanvas.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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)}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user