fix(fix-system): 适配 ClinicSystem 到新资源系统
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
using System.Collections;
|
||||
using AibisDream.FixSystem;
|
||||
using AibisDream.FixSystem;
|
||||
using AibisDream.Framework;
|
||||
using AibisDream.UI;
|
||||
using Cinemachine;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class ClinicSystem : MonoBehaviour
|
||||
{
|
||||
private GameObject _coolingScreen;
|
||||
|
||||
{
|
||||
[HideInInspector] public BubbleSlotGroup bubbleSlotGroup;
|
||||
|
||||
private void Awake()
|
||||
@@ -20,16 +16,7 @@ namespace AibisDream
|
||||
|
||||
// 注册Camera
|
||||
var clinicCam = transform.Find("Clinic Camera").GetComponent<ICinemachineCamera>();
|
||||
var coolingCam = transform.Find("Cooling Camera").GetComponent<ICinemachineCamera>();
|
||||
CameraKit.Instance.RegisterCamera(CameraEnum.Clinic, clinicCam);
|
||||
CameraKit.Instance.RegisterCamera(CameraEnum.CoolingMachine, coolingCam);
|
||||
}
|
||||
|
||||
public IEnumerator Quit(float duration)
|
||||
{
|
||||
// 黑屏出现
|
||||
yield return UIManager.Instance.GetPanel<PlayToolPanel>().FadeInAsync(duration);
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
|
||||
Reference in New Issue
Block a user