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>();
            }
        }
    }
}