|
@@ -45,6 +45,18 @@ namespace GFGGame
|
|
{
|
|
{
|
|
int index = 0;
|
|
int index = 0;
|
|
GObject star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
|
|
GObject star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
|
|
|
|
+ while (star != null && star.visible == true)
|
|
|
|
+ {
|
|
|
|
+ UI_ComStar comStar = UI_ComStar.Proxy(star);
|
|
|
|
+ for (int i = comStar.target.numChildren - 1; i >= 0; i--)
|
|
|
|
+ {
|
|
|
|
+ if (comStar.target.GetChildAt(i).name == "imgLine") continue;
|
|
|
|
+ comStar.target.RemoveChildAt(i);
|
|
|
|
+ }
|
|
|
|
+ index++;
|
|
|
|
+ star = _ui.target.GetChild(string.Format("comStar{0}_{1}_{2}", _ui.m_ctrlBuyType.selectedIndex, _ui.m_ctrlRewardsType.selectedIndex, index));
|
|
|
|
+ UI_ComStar.ProxyEnd();
|
|
|
|
+ }
|
|
foreach (int key in dicGameobj.Keys)
|
|
foreach (int key in dicGameobj.Keys)
|
|
{
|
|
{
|
|
List<GameObject> value = dicGameobj[key];
|
|
List<GameObject> value = dicGameobj[key];
|