public void Show(string title, string content, Action confirmCall = null, Action cancelCall = null) { PromptPanel panel = UIManager.Instance.Show <PromptPanel>(UIManager.OpenType.Add, UIManager.SortOrderLayer.Prompt); panel.SetTitleAndContent(title, content); panel.SetCallback(confirmCall, cancelCall); }
void Start() { Instance = this; txt = transform.Find("bg/Text").GetComponent <Text>(); canvasGroup = transform.Find("bg").GetComponent <CanvasGroup>(); }
void Awake() { instance = this; bgBtn = transform.Find("BG").GetComponent <UISprite>(); prompt = bgBtn.transform.Find("Prompt").GetComponent <UILabel>(); }
private void Awake() { instance = new PromptPanel(); }