修复bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user