Esempio n. 1
0
    public PopupDialog CreatePopupDialog(string t, string m, bool hasYesAndNo, DialogDelegate yesDelegate, DialogDelegate noDelegate, DialogDelegate okDelegate)
    {
        GameObject  go     = Instantiate(dialogPrefab, canvasTransform);
        PopupDialog script = go.GetComponent <PopupDialog>();

        script.Setup(t, m, hasYesAndNo, yesDelegate, noDelegate, okDelegate);
        return(script);
    }