12345678910111213141516171819202122232425262728 |
- using UnityEngine;
- using System.Collections;
- public class WrongConnectEnternet : MonoBehaviour
- {
- public UILabel LabelMessage;
- public UIButton CloseButton;
- private void Start()
- {
- GetComponent<ScreenBase>().Hide();
- CloseButton.onClick.Add(new EventDelegate(OnClose));
- StartCoroutine(AlphaActive());
- }
- public IEnumerator AlphaActive()
- {
- yield return new WaitForSeconds(1f);
- GetComponent<UIPanel>().alpha = 1;
- }
- private void OnClose()
- {
- GetComponent<ScreenBase>().Hide();
- }
- }
|