From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XLevelUpStatusBehaviour.cs | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs new file mode 100644 index 00000000..1c0b6722 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelUpStatusBehaviour : DlgBehaviourBase + { + public XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITweenTool m_iPlayTween; + + public IXUIButton m_Close; + + public Transform m_NewSkillFrame; + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_sprSkillBg; + + public IXUILabel m_PreFishingLevel; + + public IXUILabel m_CurFishingLevel; + + public IXUILabel m_FishingTitle; + + public GameObject m_AttrFrame; + + public GameObject m_FishFrame; + + public GameObject m_objWing; + + public IXUILabel m_lblLevel; + + public IXUILabel m_lblSkillPoint; + + public IXUILabel m_lblCurrLevel; + + public IXUITweenTool m_tweenLevel; + + private void Awake() + { + this.m_AttrFrame = base.transform.Find("Bg/AttrFrame").gameObject; + this.m_FishFrame = base.transform.Find("Bg/FishFrame").gameObject; + Transform transform = this.m_AttrFrame.transform.Find("AttrTpl"); + this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_iPlayTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_NewSkillFrame = this.m_AttrFrame.transform.Find("NewSkillFrame"); + this.m_sprSkillBg = (this.m_AttrFrame.transform.Find("p").GetComponent("XUISprite") as IXUISprite); + transform = this.m_NewSkillFrame.Find("SkillTpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_lblSkillPoint = (this.m_AttrFrame.transform.Find("SkillPoint/Label").GetComponent("XUILabel") as IXUILabel); + this.m_lblCurrLevel = (this.m_AttrFrame.transform.Find("CurLevel").GetComponent("XUILabel") as IXUILabel); + this.m_tweenLevel = (this.m_AttrFrame.transform.Find("CurLevel").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_PreFishingLevel = (this.m_FishFrame.transform.Find("PreLevel").GetComponent("XUILabel") as IXUILabel); + this.m_CurFishingLevel = (this.m_FishFrame.transform.Find("CurLevel").GetComponent("XUILabel") as IXUILabel); + this.m_FishingTitle = (this.m_FishFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_objWing = base.transform.Find("UI_level").gameObject; + this.m_lblLevel = (base.transform.Find("UI_level/LevelNum").GetComponent("XUILabel") as IXUILabel); + } + } +} -- cgit v1.1-26-g67d0