Commit 2af9bae2 authored by JiangWanZhi's avatar JiangWanZhi

组的创建BUg修改

parent f1ae6f68
......@@ -1449,7 +1449,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &824212553
RectTransform:
m_ObjectHideFlags: 0
......
......@@ -235,7 +235,7 @@ public class GroupListManager : MonoBehaviour
{
for (int i = 0; i < childCount; i++)
{
var item = roomGroupsData[index];
var item = roomGroupsData[i];
NowJindu = (float)dynamic.GetCountById(item.id) / item.roomIds.Count;
AllAreaCount = AllAreaCount + item.roomIds.Count + dynamic.GetCountById(item.id);
ClickAreaCount = ClickAreaCount + dynamic.GetCountById(item.id);
......@@ -251,7 +251,7 @@ public class GroupListManager : MonoBehaviour
AllGroupNum = roomGroupsData.Count - AllItem.Count;
for (int i = 0; i < AllGroupNum; i++)
{
var item = roomGroupsData[index];
var item = roomGroupsData[i];
NowJindu = (float)dynamic.GetCountById(item.id) / item.roomIds.Count;
AllAreaCount = AllAreaCount + item.roomIds.Count + dynamic.GetCountById(item.id);
ClickAreaCount = ClickAreaCount + dynamic.GetCountById(item.id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment