using System.Collections; using System.Collections.Generic; using UnityEngine; using LzFramework.UI; using DG.Tweening; namespace DisComputer { /* *@func 工具包视图 *@author lz *@date 2020/05/29 */ public class ToolBoxView : TTUIPage { public ToolBoxView() : base(UIType.Normal, UIMode.DoNothing, UICollider.None) { uiPath = "UIPrefabs/ToolBoxView"; } //提示操作说明 private GameObject boxMainItem; public override void Awake(GameObject go) { boxMainItem = this.transform.Find("Box").gameObject; boxMainItem.transform.localPosition = new Vector3(-658,-118,0); boxMainItem.SetActive(false); InitMsg(); } public override void Active() { if (boxMainItem.activeSelf) { TTUIPage.ClosePage(); return; } boxMainItem.SetActive(true); boxMainItem.transform.DOLocalMoveX(-506, 0.35f).SetEase(Ease.InSine).OnComplete(() => { }); } public override void Hide() { boxMainItem.transform.DOLocalMoveX(-658, 0.35f).SetEase(Ease.InSine).OnComplete(() => { boxMainItem.SetActive(false); }); } public override void Refresh() { } #region Logicl void InitMsg() { } #endregion } }