feat(SignalCycle):实现提前检测信号循环,触发重启

This commit is contained in:
2025-10-28 09:03:48 +08:00
parent b06d21114b
commit 1410837faa
7 changed files with 83 additions and 41 deletions

View File

@@ -11,31 +11,5 @@ namespace Script.Gameplay.Interface
GameObject GetGameObject(); // 获取连接点物体
string GetConnectableName(); // 获取连接点名称
public List<ConnectionLine> ConnectionLines { get; set; }
// public static List<GameObject> GetConnectedGameObjects(GameObject sender)
// {
// IConnectable connectable = sender.GetComponent<IConnectable>();
// List<GameObject> connectedObjects = new List<GameObject>();
// if (connectable != null)
// {
// foreach (var target in connectable.ConnectionLines)
// {
// if (target != null && target.PointA != null && target.PointB != null)
// {
// // 排除掉AB点中与sender相同的点
// if (target.PointA.GetGameObject() != sender)
// {
// connectedObjects.Add(target.PointA.GetGameObject());
// }
//
// if (target.PointB.GetGameObject() != sender)
// {
// connectedObjects.Add(target.PointB.GetGameObject());
// }
// }
// }
// }
// return connectedObjects;
// }
}
}