Exemple #1
0
    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);
    }
Exemple #2
0
    void Start()
    {
        Instance = this;

        txt         = transform.Find("bg/Text").GetComponent <Text>();
        canvasGroup = transform.Find("bg").GetComponent <CanvasGroup>();
    }
Exemple #3
0
 void Awake()
 {
     instance = this;
     bgBtn    = transform.Find("BG").GetComponent <UISprite>();
     prompt   = bgBtn.transform.Find("Prompt").GetComponent <UILabel>();
 }
Exemple #4
0
 private void Awake()
 {
     instance = new PromptPanel();
 }