IndieGame/client/Assets/Scripts/Config/Global/GlobalSettings.cs

35 lines
776 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ether
{
public class GlobalSettings : ScriptableObject
{
[LabelText("开始界面"), ValueDropdown("@ConstName.AllFrameList")]
public string startFrame;
[LabelText("开始场景")]
[ValueDropdown("@ConstName.SceneNameList")]
public string startScence;
private static GlobalSettings inst;
public static GlobalSettings Inst
{
get
{
if (inst == null)
{
inst = LoaderTools.LoadAsset<GlobalSettings>("Config/GlobalSettings");
}
return inst;
}
}
}
}