public void SetIntroductTrue(ItemOfReward _reward, Vector3 _pos) { m_UIEggCellIntroduct.gameObject.SetActive(false); m_IntroducePos = _pos; m_UIEggCellIntroduct.OnShow(_reward); m_UIEggCellIntroduct.gameObject.SetActive(true); }
public void InitHeadIntroduce(ItemOfReward _ItemOfReward, Vector3 m_Pos) { GameObject obj1 = null; m_IntroducePos = m_Pos; obj1 = PrefabLoader.loadFromPack("LS/pbLSCardHeadIntroduct") as GameObject; if (obj1 != null) { GameObject go = NGUITools.AddChild(DBUIController.mDBUIInstance._TopRoot, obj1); UIEggCellIntroduct mm = go.gameObject.GetComponent <UIEggCellIntroduct>(); m_UIEggCellIntroduct = mm; m_UIEggCellIntroduct.OnShow(_ItemOfReward); } }
public void InitHeadIntroduce(ItemOfReward _ItemOfReward, Vector3 m_Pos) { m_IntroducePos = m_Pos; GameObject obj1 = PrefabLoader.loadFromPack("LS/pbLSCardHeadIntroduct") as GameObject; if (obj1 != null) { go = NGUITools.AddChild(gameObject, obj1); go.SetActive(true); UIEggCellIntroduct mm = go.gameObject.GetComponent <UIEggCellIntroduct>(); m_UIEggCellIntroduct = mm; mm.obj.transform.localPosition = m_IntroducePos; m_UIEggCellIntroduct.OnShow(_ItemOfReward); } }