初始化仓库

This commit is contained in:
SepComet
2026-02-07 19:38:49 +08:00
commit 88641dae11
1540 changed files with 371772 additions and 0 deletions
@@ -0,0 +1,36 @@
//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
// Homepage: https://gameframework.cn/
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
namespace UnityGameFramework.Runtime
{
/// <summary>
/// 默认声音辅助器。
/// </summary>
public class DefaultSoundHelper : SoundHelperBase
{
private ResourceComponent m_ResourceComponent = null;
/// <summary>
/// 释放声音资源。
/// </summary>
/// <param name="soundAsset">要释放的声音资源。</param>
public override void ReleaseSoundAsset(object soundAsset)
{
m_ResourceComponent.UnloadAsset(soundAsset);
}
private void Start()
{
m_ResourceComponent = GameEntry.GetComponent<ResourceComponent>();
if (m_ResourceComponent == null)
{
Log.Fatal("Resource component is invalid.");
return;
}
}
}
}