123456789101112131415161718192021222324252627 |
- using UnityEngine;
- using System.Collections;
- public class GameOver : MonoBehaviour {
- public UILabel LabelMessage;
- public UIButton CloseButton;
- 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();
- }
- }
|