refactor(fix-system): 重构维修侧边栏面板架构并整合方块拼图
Made-with: Cursor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -62,7 +62,7 @@ namespace AibisDream.FixSystem
|
||||
// 处理内部索引
|
||||
_bodyModuleGroup = transform.Find("Body Module Group")?.gameObject;
|
||||
_headModuleGroup = transform.Find("Head Module Group")?.gameObject;
|
||||
CableSystem = transform.Find("Cable System").GetComponent<CableSystem>();
|
||||
// CableSystem = FixPanelSystem.CableSystem;
|
||||
if (transform.Find("HeatMapController"))
|
||||
{
|
||||
heatMapController = transform.Find("HeatMapController").GetComponent<HeatMapController>();
|
||||
|
||||
@@ -38,13 +38,10 @@ namespace AibisDream.FixSystem
|
||||
|
||||
#endregion
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
InitComponentRefs();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
InitComponentRefs();
|
||||
|
||||
InitSystem();
|
||||
LoadCableState();
|
||||
}
|
||||
@@ -69,7 +66,7 @@ namespace AibisDream.FixSystem
|
||||
CableRootPos = CableReelRef.transform.Find("Cable Root Pos").transform;
|
||||
PhysicCableRef = transform.Find("PhysicCable").GetComponent<PhysicCable>();
|
||||
|
||||
BodyModuleSystem = transform.parent.GetComponent<BodyModuleSystem>();
|
||||
BodyModuleSystem = FixSystemCenter.SystemDic.Get<BodyModuleSystem>();
|
||||
}
|
||||
|
||||
private void InitSystem()
|
||||
|
||||
Reference in New Issue
Block a user