using System;
using System.Collections.Generic;
using UnityEngine;
namespace TyphoonUI
{
///
/// 核心资源
///
public class CoreSource : ScriptableObject
{
public static string PATH = "Assets/Typhoon_Gen/TyphoonUI/Resources/TYPHOON_UI_CORE_SOURCE.asset";
private static CoreSource _default = null;
public static CoreSource Default
{
get
{
if (_default == null)
{
_default = Resources.Load("TYPHOON_UI_CORE_SOURCE");
}
if (_default == null)
{
throw new Exception($"找不到 {PATH} 请先执行 TyphoonUI/安装 生成核心资源");
}
return _default;
}
}
//相机
public GameObject UICamera;
//UI EventSystem
public GameObject EventSystem;
//画布
public List Canvases = new List();
}
}