From b28899db3f368df02064b85a7355518e22df5510 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Tue, 8 Feb 2022 13:40:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=B0=86=E7=BD=AE=E6=8D=A2=E6=98=9F?= =?UTF-8?q?=E7=BA=A7=E8=AE=BE=E7=BD=AE=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Common/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Common/functions.lua b/Assets/ManagedResources/~Lua/Common/functions.lua index 7ae5878ccd..7ba97754f2 100644 --- a/Assets/ManagedResources/~Lua/Common/functions.lua +++ b/Assets/ManagedResources/~Lua/Common/functions.lua @@ -788,7 +788,7 @@ function SetCardStars(starGrid, star,starType) if starType == 3 then starScale = 7 end - for i = 1, 21 do + for i = 1, starGrid.transform.childCount do starGrid.transform:GetChild(i - 1).gameObject:SetActive(false) end if star < 6 then