feat: 添加 BubbleSlotKit 与 VirtualCamRegistry 集中管理气泡槽位和虚拟相机

This commit is contained in:
2026-06-22 19:02:52 +08:00
parent 0368374a98
commit 07850fcf1c
21 changed files with 209 additions and 249 deletions
@@ -1,13 +1,35 @@
using System;
using System.Linq;
using AibisDream.Framework;
using UnityEngine;
namespace AibisDream
{
public class BubbleSlotGroup : MonoBehaviour
{
[SerializeField] private BubbleSlotEnum slotKey;
[SerializeField] private BubbleSlotGroupData data;
private void Awake()
{
if (slotKey == BubbleSlotEnum.Default)
{
return;
}
BubbleSlotKit.Instance.Register(slotKey, this);
}
private void OnDestroy()
{
if (slotKey == BubbleSlotEnum.Default)
{
return;
}
BubbleSlotKit.Instance?.Unregister(slotKey);
}
public BubbleSlotGroupData CollectData()
{
// 获取子类