重构
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user