1234567891011121314151617181920212223242526272829 |
- using UnityEngine;
- using System.Collections;
- public class NotificationName : MonoBehaviour {
- ScreenBase screen;
- UILabel label;
- public GameObject SectionDialogButton;
- public GameObject SectionErrorButton;
- void Awake()
- {
- label = GetComponentInChildren<UILabel>();
- screen = GetComponent<ScreenBase>();
- NotificationCenter.AddListener(OnShowNameNotification, NotificationType.ShowEnterNameDialog);
- }
- void OnDestroy()
- {
- NotificationCenter.RemoveListener(OnShowNameNotification, NotificationType.ShowEnterNameDialog);
- }
-
- public void OnShowNameNotification(Notification note)
- {
- screen.Show();
-
- }
- }
|