修复bug

This commit is contained in:
2025-03-01 01:34:42 +08:00
parent 40a76cffef
commit 30ac2ceb54
23 changed files with 34 additions and 122 deletions
@@ -3,6 +3,7 @@ using AibisDream.Framework;
using AibisDream.Kit;
using Cinemachine;
using UnityEngine;
using System.Collections.Generic;
namespace AibisDream.FixSystem
{
@@ -12,7 +13,7 @@ namespace AibisDream.FixSystem
#region
public BodyModule[] BodyModules { get; private set; }
public List<BodyModule> BodyModules { get; private set; }
public CableSystem CableSystem { get; private set; }
public GameObject bodyModulePrefab;
[HideInInspector] public Transform bodyModuleGroup;
@@ -56,7 +57,7 @@ namespace AibisDream.FixSystem
private void InitComponentRefs()
{
// 处理内部索引
BodyModules = transform.GetComponentsInChildren<BodyModule>();
BodyModules = transform.GetComponentsInChildren<BodyModule>().ToList();
CableSystem = transform.Find("Cable System").GetComponent<CableSystem>();
bodyModuleGroup = transform.Find("Body Module Group");
oscilloscopeSystem = transform.Find("Oscilloscope System").GetComponent<OscilloscopeSystem>();
@@ -251,7 +252,7 @@ namespace AibisDream.FixSystem
newModules[i] = newModule;
}
BodyModules = newModules;
BodyModules = newModules.ToList();
}
public override void SaveLevel()