Commit 24ad9062 authored by lijin's avatar lijin

塗色區域修復

parent efa9383d
...@@ -140,9 +140,12 @@ public class MainData : MonoBehaviour ...@@ -140,9 +140,12 @@ public class MainData : MonoBehaviour
GameMgr.Ins.miMgr.CircleAll(); GameMgr.Ins.miMgr.CircleAll();
Dictionary<int, ExRoomDatas> dic = new Dictionary<int, ExRoomDatas>(); Dictionary<int, ExRoomDatas> dic = new Dictionary<int, ExRoomDatas>();
for (int i = 0; i < list.Count; i++) for (int i = 0; i < list.Count; i++)
{
if (!dynamic.step.Contains(list[i]))
{ {
dic.Add(list[i], new ExRoomDatas()); dic.Add(list[i], new ExRoomDatas());
} }
}
for (int i = 0; i < json.allPos.Count; i++) for (int i = 0; i < json.allPos.Count; i++)
{ {
if (dic.ContainsKey(json.allPos[i])) if (dic.ContainsKey(json.allPos[i]))
...@@ -152,7 +155,10 @@ public class MainData : MonoBehaviour ...@@ -152,7 +155,10 @@ public class MainData : MonoBehaviour
} }
for (int i = 0; i < list.Count; i++) for (int i = 0; i < list.Count; i++)
{ {
GameMgr.Ins.miMgr.Create(this, dic[list[i]], list[i],id); if (dic.ContainsKey(list[i]))
{
GameMgr.Ins.miMgr.Create(this, dic[list[i]], list[i], id);
}
} }
EventDispatcher.Dispatch(EventName.Event.Event_ChoiseGroupByPic, curGroupId); EventDispatcher.Dispatch(EventName.Event.Event_ChoiseGroupByPic, curGroupId);
} }
...@@ -217,7 +223,7 @@ public class MainData : MonoBehaviour ...@@ -217,7 +223,7 @@ public class MainData : MonoBehaviour
} }
for (int i = 0; i < dynamic.step.Count; i++) for (int i = 0; i < dynamic.step.Count; i++)
{ {
GameMgr.Ins.miMgr.Create(this, dic[dynamic.step[i]], dynamic.step[i],0); GameMgr.Ins.miMgr.Create(this, dic[dynamic.step[i]], dynamic.step[i], 0);
} }
} }
......
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