mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
提交完美
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using Common;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using DG.Tweening;
|
||||
using FairyGUI;
|
||||
using SHFrame;
|
||||
using UnityEngine;
|
||||
|
||||
namespace HotScripts.GameScripts.FGui.Scripts.Common
|
||||
{
|
||||
public class TipTitleUI : UIBase
|
||||
{
|
||||
|
||||
private UI_TipTitleUI UIView => View as UI_TipTitleUI;
|
||||
|
||||
public override void OnInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override async void OnOpen(params object[] param)
|
||||
{
|
||||
|
||||
if (param.Length > 0)
|
||||
{
|
||||
UIView.m_item.m_title.text = $"{param[0]}";
|
||||
}
|
||||
|
||||
UIView.m_item.pivot = new Vector2(0, 0);
|
||||
DOTween.To(() => UIView.m_item.pivot.x, x => UIView.m_item.pivot = new Vector2(x, 0), 1, 0.25f);
|
||||
await UniTask.Delay(1250);
|
||||
DOTween.To(() => UIView.m_item.pivot.x, x => UIView.m_item.pivot = new Vector2(x,0), 0f, 0.25f)
|
||||
.OnComplete(Close);
|
||||
|
||||
}
|
||||
|
||||
public override void AddListener()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OnClose()
|
||||
{
|
||||
}
|
||||
|
||||
public override void RemoveListener()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b9bbb422382e47b381fbc5ae2683336e
|
||||
timeCreated: 1729145166
|
Reference in New Issue
Block a user