Beispiel #1
0
    private UIPopUpBanner CreatePopUpBanner()
    {
        GameObject    popBanAux   = Instantiate(popUpBannerPrefab);
        UIPopUpBanner popUpBanner = popBanAux.GetComponent <UIPopUpBanner>();

        return(popUpBanner);
    }
Beispiel #2
0
    public void GeneratePopUpBanner(string title, string description, UnityAction OnCancel, UnityAction OnConfirm)
    {
        PopUpBannerData   popBD = new PopUpBannerData(title, description);
        PopUpBannerAction popBA = new PopUpBannerAction(OnCancel, OnConfirm);

        uIPopUpBanner = CreatePopUpBanner();
        uIPopUpBanner.SetPopUpData(popBD, popBA);
        uIPopUpBanner.Show();
    }