Files
Main/Assets/Code/Logic/_Required/Profiler/ProfilerSystem.cs

40 lines
1.0 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using Thousandto.Core.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Thousandto.Code.Logic
{
//系统分析器
public class ProfilerSystem
{
//打开资源分析器
public static void ShowAssetProfiler()
{
if (AppRoot.GameObject.GetComponent<PFAssetMainForm>() == null)
{
AppRoot.GameObject.AddComponent<PFAssetMainForm>();
}
}
//打开fps显示
public static void ShowFPS()
{
if (AppRoot.GameObject.GetComponent<PFAssetFPSForm>() == null)
{
AppRoot.GameObject.AddComponent<PFAssetFPSForm>();
}
}
//打开设备信息显示
public static void ShowPhoneInfo()
{
if (AppRoot.GameObject.GetComponent<PFAssetPhoneInfoForm>() == null)
{
AppRoot.GameObject.AddComponent<PFAssetPhoneInfoForm>();
}
}
}
}