From 41f2e6da67fb92e18e9d054276de78718c64c5f4 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 04 八月 2025 19:37:13 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/KnapSack/Logic/composeLineCell.cs |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Main/System/KnapSack/Logic/composeLineCell.cs b/Main/System/KnapSack/Logic/composeLineCell.cs
index 72122ec..6625d2d 100644
--- a/Main/System/KnapSack/Logic/composeLineCell.cs
+++ b/Main/System/KnapSack/Logic/composeLineCell.cs
@@ -3,12 +3,22 @@
 /// <summary>
 /// 鍚堟垚鏍煎瓙琛�
 /// </summary>
-public class composeLineCell : CellView
+public class ComposeLineCell : CellView
 {
-    [SerializeField] PackGirdCell[] itemCell;
+    [SerializeField] ComposeGirdCell[] itemCell;
     public void Display(int index)
     {
-        
-
+        for (int i = 0; i < itemCell.Length; i++)
+        {
+            if (index + i < PackManager.Instance.composeItemGuidList.Count)
+            {
+                itemCell[i].SetActive(true);
+                itemCell[i].Display(index + i);
+            }
+            else
+            {
+                itemCell[i].SetActive(false);
+            }
+        }
     }
 }

--
Gitblit v1.8.0