23 lines
676 B
C#
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);
|
|
}
|
|
|
|
} |