예제 #1
0
    void UpdateHead()
    {
        if (GamePlayer.Instance.babies_list_[MainbabyListUI.CrtSelectIdx] == null)
        {
            ClearHead();
            return;
        }
        ClearHead();
        BabyData         bd  = BabyData.GetData(GamePlayer.Instance.babies_list_[MainbabyListUI.CrtSelectIdx].GetIprop(PropertyType.PT_TableId));
        EntityAssetsData ead = EntityAssetsData.GetData(bd._AssetsID);

        iconKuang.spriteName = BabyData.GetPetQuality(bd._PetQuality);
        iconType.spriteName  = bd._Tpye.ToString();
        crtHeadIcon          = ead.assetsIocn_;
        HeadIconLoader.Instance.LoadIcon(crtHeadIcon, icon);
    }
예제 #2
0
//	void OnClickExamine(ButtonScript obj, object args, int param1, int param2)
//	{
//		TuJianUI.babyId = param1;
//		TuJianUI.Instance.OpenBabyInfoObj ();
////		BabyInfo binfo = TuJianUI.Instance.babyInfoObj.GetComponent<BabyInfo> ();
////		binfo.Bdata = BabyData.GetData (param1);
////		TuJianUI.Instance.babyListObj.SetActive (false);
//	}

    void Start()
    {
        iconBack.spriteName = BabyData.GetPetQuality(Bdata._PetQuality);
    }