28 lines
700 B
C#
28 lines
700 B
C#
|
|
|
|||
|
|
using UnityEngine;
|
|||
|
|
using System;
|
|||
|
|
namespace ZXKFramework
|
|||
|
|
{
|
|||
|
|
//һ<><D2BB>ʱ<EFBFBD><CAB1><EFBFBD>Զ<EFBFBD><D4B6>ر<EFBFBD>
|
|||
|
|
public class TipTime : TipBase
|
|||
|
|
{
|
|||
|
|
Coroutine con;
|
|||
|
|
public void ShowTip(TipData data, Action callBack)
|
|||
|
|
{
|
|||
|
|
ShowTip(data.tip);
|
|||
|
|
ShowBg(data.isShowBg);
|
|||
|
|
Game.Instance.IEnumeratorManager.Stop(con);
|
|||
|
|
con = Game.Instance.IEnumeratorManager.Run(data.time, () =>
|
|||
|
|
{
|
|||
|
|
gameObject.SetActiveSafe(false);
|
|||
|
|
Close();
|
|||
|
|
callBack?.Invoke();
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
public override void Close()
|
|||
|
|
{
|
|||
|
|
base.Close();
|
|||
|
|
con = null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|