feat: 开发模式
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace AibisDream.Utility
|
||||
{
|
||||
/// <summary>
|
||||
/// 统一控制运行时开发工具的可用范围。类型始终存在,避免 Release 场景出现 Missing Script;
|
||||
/// 但 Release 构建中的值会在编译期固定为 false。
|
||||
/// </summary>
|
||||
public static class DeveloperModeGate
|
||||
{
|
||||
public static bool IsEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user