多轮审查和修复
This commit is contained in:
18
Assets/Scripts/World/CollectibleSpawnerConfig.cs
Normal file
18
Assets/Scripts/World/CollectibleSpawnerConfig.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user