Ejemplo n.º 1
0
 public void InitSetData()
 {
     if (m_TalentName == null)
     {
         m_TalentName    = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/NameType/Label_Name");
         m_TypeLabel     = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/NameType/Label_Type");
         m_LevelLabel    = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/NameType/Label_Lv");
         m_DescribeLabel = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/Describe/Label_Describe");
         m_UnLockLabel   = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/Locked/Label_Conditions");
         m_CostNum       = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/Cost/Resources/Content/Label_Num");
         m_CostItemName  = FindComponent <TextMeshProUGUI>("TipsScrollView/Viewport/Content/Content/Cost/Resources/Content/Label_Name");
         m_CostImage     = FindComponent <Image>("TipsScrollView/Viewport/Content/Content/Cost/Resources/Content/Icon/Icon");
         m_TalentImage   = FindComponent <Image>("TipsScrollView/Viewport/Content/Content/NameType/Image_Icon");
         m_QualityImage  = FindComponent <Image>("TipsScrollView/Viewport/Content/Back/Image_Quality");
     }
     m_TalentProxy      = GameFacade.Instance.RetrieveProxy(ProxyName.TalentProxy) as TalentProxy;
     m_CfgEternityProxy = GameFacade.Instance.RetrieveProxy(ProxyName.CfgEternityProxy) as CfgEternityProxy;
 }
Ejemplo n.º 2
0
 public override void OnShow(object msg)
 {
     base.OnShow(msg);
     LoadViewPart(ASSET_ADDRESS, OwnerView.ListBox);
     m_CfgEternityProxy = GameFacade.Instance.RetrieveProxy(ProxyName.CfgEternityProxy) as CfgEternityProxy;
     m_TalentProxy      = GameFacade.Instance.RetrieveProxy(ProxyName.TalentProxy) as TalentProxy;
     UIManager.Instance.GetUIElement(ASSET_ADDRESS_TALENTELEMENT, (GameObject prefab) =>
     {
         m_TalentElement = prefab;
     });
     UIManager.Instance.GetUIElement(ASSET_ADDRESS_TALENTTYPEELEMENT, (GameObject prefab) =>
     {
         m_TalentTypeElement = prefab;
     });
     UIManager.Instance.GetUIElement(ASSET_ADDRESS_TALENTLINEELMENT, (GameObject prefab) =>
     {
         m_TalentLineElement = prefab;
     });
 }