Files
ft/Client/Assets/Scripts/UI/PinballUncountable/PinballUncountableRewardTipPopupControl.cs
2026-06-29 21:18:33 +08:00

23 lines
676 B
C#

using System.Collections;
using UnityEngine;
public class PinballUncountableRewardTipPopupControl : OfferTreasureAscentGrandRewardView
{
[SerializeField] private float showDuration = 2f;
[SerializeField] private Vector3 tipOffset = new Vector3(0, 0, 0);
protected override void Start()
{
btnTip.onClick.AddListener(ShowTip);
tip.MoveableTip.transform.position = transform.position + tipOffset;
StartCoroutine(ShowTipCoroutine());
}
private IEnumerator ShowTipCoroutine()
{
tip.gameObject.SetActive(true);
yield return new WaitForSeconds(showDuration);
tip.gameObject.SetActive(false);
}
}