From 10dc4b99ed3d673ce04fc314b1d22ccf315ff85c Mon Sep 17 00:00:00 2001 From: commandf1 Date: Mon, 30 Sep 2024 19:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E5=A4=8DBUG?= =?UTF-8?q?=E6=B2=A1=E4=BF=AE=E5=A4=8D=E5=A5=BD=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COG/UI/CustomButton/CustomButton.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COG/UI/CustomButton/CustomButton.cs b/COG/UI/CustomButton/CustomButton.cs index 7030a95..50895b1 100644 --- a/COG/UI/CustomButton/CustomButton.cs +++ b/COG/UI/CustomButton/CustomButton.cs @@ -343,7 +343,7 @@ internal static void ArrangePosition() { var pos = b.transform.localPosition; var (x, y, z) = (pos.x, pos.y, pos.z); - if ((x > 0 && x < 0.01) || (y > 0 && y < 0.01) || (z > 0 && z < 0.01)) exit = true; + if (x < 0.01 || y < 0.01 || z < 0.01) exit = true; return (x, y, z); }).ToList(); // 不知为何原来的select函数返回的集合中在靠近管理室地图下会返回一个极大的数字,只能这样了