This commit is contained in:
2024-11-15 01:24:07 +08:00
parent fccc58f5b9
commit db5b4fc2ed
23 changed files with 606 additions and 399 deletions
@@ -1,6 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AibisDream.Framework;
using UnityEngine;
using UnityEngine.Events;
@@ -8,9 +9,13 @@ namespace AibisDream.FixSystem
{
public class BodyModuleSystem : MonoBehaviour
{
#region
public BodyModule[] BodyModules { get; private set; }
public CableSystem CableSystem { get; private set; }
#endregion
#region
public UnityEvent<Socket> PlugInEvent => CableSystem.plugInEvent;
@@ -31,6 +36,7 @@ namespace AibisDream.FixSystem
private void InitComponentRefs()
{
// 处理内部索引
BodyModules = transform.GetComponentsInChildren<BodyModule>();
CableSystem = transform.Find("Cable System").GetComponent<CableSystem>();
}