//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Sunday, April 28, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.Events; namespace vnxbqy.UI { public class OneLevelWin : Window { protected Image m_TitleIcon; protected FunctionButtonGroup m_Group; protected Button m_Left; protected Button m_Right; protected Button m_Close; protected Text m_Copper; protected Text m_Diamond; protected Text m_BindDiamond; protected RectTransform m_SubWindowContainer; public RectTransform subWindowContainer { get { return m_SubWindowContainer; } } PositionTween positionTween; #region Built-in protected override void BindController() { positionTween = this.AddMissingComponent(); positionTween.curve = BuiltInLoader.LoadScriptableObject("Linear"); positionTween.delayMode = Tween.DelayMode.TwiceFrame; positionTween.duration = 0.3f; positionTween.from = new Vector3(0, 750, 0); positionTween.to = Vector3.zero; positionTween.trigger = Tween.Trigger.Manual; positionTween.wrapMode = Tween.WrapMode.Once; windowInfo.tween = positionTween; m_TitleIcon = this.GetComponent("Pivot/Container_BackGround/Img_Title"); m_Group = this.GetComponent("Pivot/Container_Functions"); m_Left = this.GetComponent