feat(fix-system): 重构维修系统适配管理器架构
This commit is contained in:
@@ -68,6 +68,9 @@ namespace AibisDream.FixSystem
|
||||
|
||||
FixSystemCenter.SystemDic.Register(this);
|
||||
|
||||
// 注册到维修系统管理器
|
||||
RepairSystemManager.Register(this);
|
||||
|
||||
// 注册Camera
|
||||
var virtualCam2 = transform.Find("Body Module Camera Center").GetComponent<ICinemachineCamera>();
|
||||
CameraKit.Instance.RegisterCamera(CameraEnum.BodyModuleCenter, virtualCam2);
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using AibisDream.Framework;
|
||||
using AibisDream;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using AibisDream.FixSystem;
|
||||
|
||||
public class UFModule : MonoBehaviour
|
||||
{
|
||||
private GameObject _ufCover;
|
||||
private GameObject _ufModule;
|
||||
|
||||
private GameObject _ufSocket;
|
||||
private GameObject _ufSocket;
|
||||
|
||||
private GameObject _ufColor;
|
||||
private UFData _ufData=new ();
|
||||
|
||||
private UFData _ufData = new();
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
// 将数据注册到数据容器内
|
||||
@@ -24,9 +23,8 @@ public class UFModule : MonoBehaviour
|
||||
_ufModule = transform.Find("Module Pic").gameObject;
|
||||
_ufSocket = transform.Find("Socket").gameObject;
|
||||
_ufCover = _ufModule.transform.Find("Cover").gameObject;
|
||||
_ufColor=_ufModule.transform.Find("Color").gameObject;
|
||||
_ufColor = _ufModule.transform.Find("Color").gameObject;
|
||||
}
|
||||
// Start is called before the first frame update
|
||||
|
||||
public void RemoveUFCover()
|
||||
{
|
||||
@@ -44,7 +42,7 @@ public class UFModule : MonoBehaviour
|
||||
{
|
||||
_ufModule.SetActive(false);
|
||||
_ufSocket.SetActive(false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_ufData.isUFRemoved = true;
|
||||
@@ -79,7 +77,7 @@ public class UFModule : MonoBehaviour
|
||||
|
||||
_ufData.isColorRemoved = false;
|
||||
}
|
||||
public void RemoveUFColor()
|
||||
public void RemoveUFColor()
|
||||
{
|
||||
if (_ufColor.activeInHierarchy)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user