You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.5 KiB
73 lines
1.5 KiB
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<ToolBoxView>();
|
|
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
|
|
|
|
}
|
|
}
|
|
|