28 lines
854 B
C#
28 lines
854 B
C#
using AibisDream.FixSystem;
|
|
using AibisDream.Framework;
|
|
using Cinemachine;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public class ClinicSystem : MonoBehaviour
|
|
{
|
|
[HideInInspector] public BubbleSlotGroup bubbleSlotGroup;
|
|
|
|
private void Awake()
|
|
{
|
|
FixSystemCenter.SystemDic.Register(this);
|
|
bubbleSlotGroup = transform.Find("Bubble Slot Group").GetComponent<BubbleSlotGroup>();
|
|
|
|
// 注册Camera
|
|
var clinicCam = transform.Find("Clinic Camera").GetComponent<ICinemachineCamera>();
|
|
CameraKit.Instance.RegisterCamera(CameraEnum.Clinic, clinicCam);
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
FixSystemCenter.SystemDic.Unregister<ClinicSystem>();
|
|
CameraKit.Instance.UnRegisterCamera(CameraEnum.Clinic);
|
|
}
|
|
}
|
|
} |