예제 #1
0
 private void OnClick_Ok()
 {
     m_cCallerBase.ShowPanel();
     base.HidePanel();
     m_cLbAlert.text = "";
     m_cCallerBase   = null;
 }
예제 #2
0
 public void ShowAlert(string sMessage, UIHandlerBase cCaller)
 {
     m_cLbAlert.text = sMessage;
     base.ShowPanel();
     cCaller.HidePanel();
     m_cCallerBase = cCaller;
 }
예제 #3
0
    protected virtual void Start()
    {
        handler = GetComponentInParent <UIHandlerBase>();

        visual.GetComponent <Image>().sprite = UpdateSlotVisual();
        transform.GetComponent <Button>().onClick.RemoveAllListeners();
        transform.GetComponent <Button>().onClick.AddListener(OnClickAction);
    }
예제 #4
0
 protected virtual void OnEnable()
 {
     handler = GetComponentInParent <UIHandlerBase>();
     handler.RefresherCallback += Refresh;
 }