Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 823e908ea2 | |||
| 3ee36fc0af | |||
| 3de0259ea2 |
@@ -6,6 +6,13 @@ Unity 2022.3.62f3, URP, C#. Custom audio & haptic middleware under the namespace
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Agent Guidelines
|
||||||
|
|
||||||
|
- **称呼**:在沟通中始终称呼用户为「思谦」或「王思谦」。
|
||||||
|
- **存疑必问**:遇到任何不确定、拿不准、信息缺失或模糊的情况,不要自行推测或假设。先收集、整理好所有问题,然后停下来向思谦提问确认。宁可多问,不要猜错。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -9,20 +9,20 @@ namespace OCES.Audio
|
|||||||
|
|
||||||
public static class AudioImportTool
|
public static class AudioImportTool
|
||||||
{
|
{
|
||||||
static AudioExtendSettings s_settings;
|
static AudioExtendSettings _settings;
|
||||||
|
|
||||||
static AudioExtendSettings Settings
|
static AudioExtendSettings Settings
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (s_settings == null)
|
if (_settings == null)
|
||||||
{
|
{
|
||||||
s_settings = AssetDatabase.LoadAssetAtPath<AudioExtendSettings>(
|
_settings = AssetDatabase.LoadAssetAtPath<AudioExtendSettings>(
|
||||||
"Assets/Settings/AudioExtendSettings.asset");
|
"Assets/Settings/AudioExtendSettings.asset");
|
||||||
if (s_settings == null)
|
if (_settings == null)
|
||||||
Debug.LogError("[AudioImportTool] 无法加载 AudioExtendSettings.asset,请确保资产存在于 Assets/Settings/ 目录");
|
Debug.LogError("[AudioImportTool] 无法加载 AudioExtendSettings.asset,请确保资产存在于 Assets/Settings/ 目录");
|
||||||
}
|
}
|
||||||
return s_settings;
|
return _settings;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user