feat: 添加 BubbleSlotKit 与 VirtualCamRegistry 集中管理气泡槽位和虚拟相机
This commit is contained in:
@@ -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()
|
||||
{
|
||||
// 获取子类
|
||||
|
||||
Reference in New Issue
Block a user