【m】停止运行时清空静态对象
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Stary.Evo.AudioCore
|
||||
}
|
||||
CoroutineHelper.SetRunner();
|
||||
|
||||
// 初始化 Voice 池(最多 1 个,可动态扩展)
|
||||
// 初始化 Voice 池(初始 1 个,可动态扩展)
|
||||
poolDict["Voice"] = new Queue<GameObject>();
|
||||
CreateAudioSource("Voice");
|
||||
|
||||
@@ -37,10 +37,7 @@ namespace Stary.Evo.AudioCore
|
||||
|
||||
// 初始化 SFX 池(初始 4 个,可动态扩展)
|
||||
poolDict["SFX"] = new Queue<GameObject>();
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
CreateAudioSource("SFX");
|
||||
}
|
||||
CreateAudioSource("SFX");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user