19 lines
582 B
C#
19 lines
582 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 LingZhuPrefab;
|
|
[SerializeField] internal GameObject ItemPrefab;
|
|
|
|
private void Awake() => CollectibleSpawner.Register(this);
|
|
}
|
|
}
|