private void OnClick_Ok() { m_cCallerBase.ShowPanel(); base.HidePanel(); m_cLbAlert.text = ""; m_cCallerBase = null; }
public void ShowAlert(string sMessage, UIHandlerBase cCaller) { m_cLbAlert.text = sMessage; base.ShowPanel(); cCaller.HidePanel(); m_cCallerBase = cCaller; }
protected virtual void Start() { handler = GetComponentInParent <UIHandlerBase>(); visual.GetComponent <Image>().sprite = UpdateSlotVisual(); transform.GetComponent <Button>().onClick.RemoveAllListeners(); transform.GetComponent <Button>().onClick.AddListener(OnClickAction); }
protected virtual void OnEnable() { handler = GetComponentInParent <UIHandlerBase>(); handler.RefresherCallback += Refresh; }