Beispiel #1
0
 public void Init(DRewardPopup popupData)
 {
     this.popupData = popupData;
     getMascotXPData();
     currentScreenIndex = 0;
     screenData         = RewardPopupScreenBuilder.BuildScreens(popupData);
     isChestLanded      = false;
     PopupTitle         = getPopupTitle();
 }
    private void Start()
    {
        DRewardPopup popupData = GetComponentInParent <RewardPopupController>().PopupData;

        if (!string.IsNullOrEmpty(popupData.MascotName))
        {
            tintTextForMascot(popupData.MascotName);
        }
    }
Beispiel #3
0
    private void Start()
    {
        mascotDefinition = Service.Get <MascotService>().GetMascot(MascotKey.Id).Definition;
        DRewardPopup popupData = GetComponentInParent <RewardPopupController>().PopupData;

        if (!string.IsNullOrEmpty(popupData.MascotName) && mascotDefinition != null)
        {
            toggleForMascot(popupData.MascotName);
        }
    }
 private ShowRewardPopup(Builder builder)
 {
     popupData                           = new DRewardPopup();
     popupData.PopupType                 = builder.Type;
     popupData.RewardData                = builder.RewardData;
     popupData.SplashTitleToken          = builder.HeaderText;
     popupData.MascotName                = builder.MascotName;
     popupData.ShowXpAndCoinsUI          = builder.ShowXpAndCoinsUI;
     popupData.SourceID                  = builder.SourceID;
     popupData.RewardPopupPrefabOverride = builder.RewardPopupPrefabOverride;
     popupData.CustomScreenKeys          = builder.CustomScreenKeys;
 }
Beispiel #5
0
    private void Start()
    {
        GetComponent <Image>().enabled = false;
        DRewardPopup popupData = GetComponentInParent <RewardPopupController>().PopupData;
        string       text      = "Text";

        if (!string.IsNullOrEmpty(popupData.MascotName) && popupData.PopupType != DRewardPopup.RewardPopupType.levelUp)
        {
            text = Service.Get <MascotService>().GetMascot(popupData.MascotName).AbbreviatedName;
        }
        if (IsTitle)
        {
            Content.LoadAsync(onBannerLoader, bannerKeyTitle, text);
        }
        else
        {
            Content.LoadAsync(onBannerLoader, bannerKey, text);
        }
    }
Beispiel #6
0
 public RewardPopupComplete(DRewardPopup rewardPopupData)
 {
     RewardPopupData = rewardPopupData;
 }