//填充星空
    private void creatStar()
    {
        if (infoByFront == null)
        {
            return;
        }
        stars = new List <GoddessAstrolabeStarCtrl>();

        for (int i = 0; i < infoByFront.Count; i++)
        {
            GameObject a = instantiateStar(infoByFront[i]);
//			GameObject a = MonoBase.Create3Dobj("Goddess/Star").obj;
            if (GoddessAstrolabeManagerment.Instance.getLastStarIdById(nebulaId) == infoByFront[i].id)
            {
                GameObject last = Instantiate(starLast) as GameObject;
                last.transform.parent     = a.transform;
                last.transform.localScale = Vector3.one;
                last.GetComponent <Animator>().Play(0);
            }
            GoddessAstrolabeStarCtrl b = a.AddComponent <GoddessAstrolabeStarCtrl>();
            b.init(infoByFront[i], this);
            b.transform.parent     = starParent.transform;
            b.transform.localScale = Vector3.one;
            b.transform.FindChild("star").gameObject.particleSystem.Play();

            pos.localPosition    = getTransform(infoByFront[i].position);
            b.transform.position = pos.position;
            b.name = infoByFront[i].id + "";

            stars.Add(b);
        }

        if (stars == null || stars.Count == 0)
        {
            return;
        }

        for (int i = 0; i < stars.Count; i++)
        {
            setLine(stars[i]);
        }
    }
    //激活指定星星
    IEnumerator changeStarById(int id)
    {
        yield return(new WaitForSeconds(0.2f));

        //先清理旧的
        for (int i = 0; i < UIEffectRoot.childCount; i++)
        {
            Transform t = UIEffectRoot.GetChild(i);
            if (t.name == id.ToString())
            {
                Destroy(t.gameObject);
            }
        }

        for (int i = 0; i < starParent.transform.childCount; i++)
        {
            Transform t = starParent.transform.GetChild(i);
            if (t.name == id.ToString())
            {
                Destroy(t.gameObject);
            }
        }

        yield return(new WaitForSeconds(0.2f));

        //可以开始创建了
        for (int i = 0; i < infoByFront.Count; i++)
        {
            if (infoByFront[i].id == id)
            {
                GameObject a = instantiateStar(infoByFront[i]);
                if (GoddessAstrolabeManagerment.Instance.getLastStarIdById(nebulaId) == infoByFront[i].id)
                {
                    GameObject last = Instantiate(starLast) as GameObject;
                    last.transform.parent     = a.transform;
                    last.transform.localScale = Vector3.one;
                    last.GetComponent <Animator>().Play(0);
                    if (nebulaId == 6)
                    {
                        TextTipWindow.Show(LanguageConfigManager.Instance.getLanguage("astrolabe04"));
                    }
                    else
                    {
                        TextTipWindow.Show(LanguageConfigManager.Instance.getLanguage("astrolabe03"));
                    }
                }
                GoddessAstrolabeStarCtrl b = a.AddComponent <GoddessAstrolabeStarCtrl>();
                b.init(infoByFront[i], this);
                b.transform.parent     = starParent.transform;
                b.transform.localScale = Vector3.one;
                b.transform.FindChild("star").gameObject.particleSystem.Play();

                pos.localPosition    = getTransform(infoByFront[i].position);
                b.transform.position = pos.position;
                b.name = infoByFront[i].id + "";
                yield return(new WaitForSeconds(0.8f));

                setLine(b);
                stars.Add(b);
                if (b.getInfo().awardType != 3)
                {
                    UiManager.Instance.createMessageLintWindow(b.getInfo().awardDesc);
                }
                else
                {
                    PrizeSample ps = new PrizeSample(b.getInfo().award.awardType, b.getInfo().award.awardSid, b.getInfo().award.awardNum);
                    UiManager.Instance.createPrizeMessageLintWindow(ps);
                }


                yield return(new WaitForSeconds(0.5f));

                //给可激活的星星画线
                List <GoddessAstrolabeStarCtrl> next = getNextStar(b.getInfo().next);
                if (next != null)
                {
                    for (int j = 0; j < next.Count; j++)
                    {
                        next[j].showUI();
                        setLine(next[j]);
                    }
                }
                yield return(new WaitForSeconds(0.5f));

                getStarPosByMainType();
//				findStar();
//				UiManager.Instance.createMessageWindowByOneButton(b.getInfo().awardDesc,(MessageHandle)=>{
//					findStar();
//				});
            }
        }
    }