From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs new file mode 100644 index 00000000..c204f219 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI.Battle +{ + internal class BattleQTEDlgBehaviour : DlgBehaviourBase + { + public Transform m_Block; + + public Transform m_Bind; + + public IXUISprite m_BindLeftButton; + + public IXUISprite m_BindRightButton; + + public Transform m_BindArrow; + + public Transform m_Abnormal; + + public IXUISlider m_AbnormalBar; + + public IXUISprite m_AbnormalClickSpace; + + public IXUITweenTool m_AbnormalBeginTween; + + public IXUITweenTool m_AbnormalHitTween; + + public IXUITweenTool m_AbnormalSuccessTween; + + public IXUITweenTool m_AbnormalFailTween; + + public Transform m_AbnormalLeftTarget; + + public Transform m_AbnormalRightTarget; + + public Transform m_AbnormalThumb; + + public Transform m_Charge; + + public IXUISlider m_ChargeBar; + + private void Awake() + { + this.m_Block = base.transform.Find("Block"); + this.m_Bind = base.transform.Find("Bg/Bind"); + this.m_BindLeftButton = (this.m_Bind.Find("Left/Light").GetComponent("XUISprite") as IXUISprite); + this.m_BindRightButton = (this.m_Bind.Find("Right/Light").GetComponent("XUISprite") as IXUISprite); + this.m_BindArrow = this.m_Bind.Find("Arrow"); + this.m_Abnormal = base.transform.Find("Bg/AbnormalBar"); + this.m_AbnormalBar = (this.m_Abnormal.Find("Bar").GetComponent("XUISlider") as IXUISlider); + this.m_AbnormalClickSpace = (this.m_Abnormal.Find("ClickSpace").GetComponent("XUISprite") as IXUISprite); + this.m_AbnormalBeginTween = (this.m_Abnormal.Find("Thumb/Begin").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalHitTween = (this.m_Abnormal.Find("Thumb/Hit").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalSuccessTween = (this.m_Abnormal.Find("Success").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalFailTween = (this.m_Abnormal.Find("Fail").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalLeftTarget = this.m_Abnormal.Find("Target/Left"); + this.m_AbnormalRightTarget = this.m_Abnormal.Find("Target/Right"); + this.m_AbnormalThumb = this.m_Abnormal.Find("Thumb"); + this.m_Charge = base.transform.Find("Bg/ChargeBar"); + this.m_ChargeBar = (this.m_Charge.GetComponent("XUISlider") as IXUISlider); + } + } +} -- cgit v1.1-26-g67d0