石头串联

This commit is contained in:
2024-12-16 22:09:56 +08:00
parent 7edaac2201
commit 6ef406d44c
53 changed files with 2725 additions and 621 deletions
+3 -20
View File
@@ -25,16 +25,6 @@ namespace AibisDream
Init();
}
private void OnEnable()
{
Enable();
}
private void OnDisable()
{
Disable();
}
#region
public void Init()
@@ -44,16 +34,11 @@ namespace AibisDream
_shafts = GetComponentsInChildren<Shaft>();
}
public void Enable()
public void Start()
{
_shaftGraph = new ShaftGraph(_shafts);
}
public void Disable()
{
_shaftGraph = null;
}
#endregion
/// <summary>
@@ -109,8 +94,6 @@ namespace AibisDream
{
Debug.Log("达成目标");
}
#region
@@ -165,8 +148,8 @@ namespace AibisDream
// 再添加
foreach (var shaftData in gearSystemData.shaftLevelDataArray)
{
var newModule = Instantiate(shaftPrefab, shaftRoot).GetComponent<Shaft>();
newModule.Load(shaftData);
var newShaft = Instantiate(shaftPrefab, shaftRoot).GetComponent<Shaft>();
newShaft.Load(shaftData);
}
}