From 54e2d110480c493383aec7d04c4e7f4fddcd720a Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:53:00 +0800 Subject: [PATCH] rename internal method --- src/EcsPipeline.Builder.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/EcsPipeline.Builder.cs b/src/EcsPipeline.Builder.cs index b92d219..2fa6251 100644 --- a/src/EcsPipeline.Builder.cs +++ b/src/EcsPipeline.Builder.cs @@ -537,7 +537,7 @@ namespace DCFApixels.DragonECS #endregion #region MergeWith - private static bool AreMatchingOrderIdentical(List listA, IReadOnlyList listB) + private static bool CheckOverlapsOrder(List listA, IReadOnlyList listB) { int lastIndexof = 0; for (int i = 0; i < listB.Count; i++) @@ -559,8 +559,7 @@ namespace DCFApixels.DragonECS List listA = _layers; IReadOnlyList listB = other; - //TODO все еще не работает!!! - if (AreMatchingOrderIdentical(listA, listB) == false) + if (CheckOverlapsOrder(listA, listB) == false) { //Для слияния списков слоев, нужно чтобы в пересечении порядок записей совпадал Throw.Exception("To merge layer lists, the names of the layers present in both lists must appear in the same order in both lists.");