Files
zeling_v2/Assets/Scripts/World/CollectibleSpawnerConfig.cs
2026-05-12 15:34:08 +08:00

19 lines
578 B
C#

using UnityEngine;
namespace BaseGames.World
{
/// <summary>
/// CollectibleSpawner 的 Prefab 配置 SO。
/// 挂 MonoBehaviour 包装以便在 Awake 时向静态 CollectibleSpawner 注册。
/// 挂在 Persistent 场景的 [World] GameObject 上。
/// </summary>
public class CollectibleSpawnerConfig : MonoBehaviour
{
[Header("掉落物 Prefab")]
[SerializeField] internal GameObject GeoPrefab;
[SerializeField] internal GameObject ItemPrefab;
private void Awake() => CollectibleSpawner.Register(this);
}
}