123456789101112131415161718192021 |
- using UnityEngine;
- using System.Collections;
- [RequireComponent(typeof(ScreenBase))]
- public class TimeOutDialog : MonoBehaviour
- {
- public float delay = 3;
- public GameObject closeButton;
- void OnEnable()
- {
- StartCoroutine(TimeOutCoroutine());
- }
- IEnumerator TimeOutCoroutine()
- {
- yield return new WaitForSeconds(delay);
- //closeButton.SendMessage("OnClick");
- }
- }
|