Ejemplo n.º 1
0
        public FreeRemoveAds(GameData gameData, PlayerData playerData, LocalisationManager localisation, APIManager apiManager, string videoAdID, 
            string genericPopupID, object popupHeader, object popupMessage,
            object freeRemoveButtonLabel, object paidRemoveButtonLabel, object cancelButtonLabel,
            object freeAdsRemoveSuccessMessage, object freeAdsRemoveSuccessButton,
            object freeAdsRemoveFailureMessage, object freeAdsRemoveFailureButton,
            int freeRemoveButtonColorID = 0, int paidRemoveButtonColorID = 0, int cancelButtonColorID = 0)
            : base(apiManager, localisation, genericPopupID, popupHeader, popupMessage)
        {
            _gameData = gameData.APISettings;
            _playerData = playerData.APIState;
            _videoAdID = videoAdID;

            apiManager.Ads.CacheRewardVideos(_videoAdID, true);

            CreateButtonKeys(BUTTON_FREE, freeRemoveButtonLabel, freeRemoveButtonColorID);
            CreateButtonKeys(BUTTON_PAID, paidRemoveButtonLabel, paidRemoveButtonColorID);
            CreateButtonKeys(BUTTON_CANCEL, cancelButtonLabel, cancelButtonColorID);
            CreateButtonKeys(BUTTON_SUCCESS, freeAdsRemoveSuccessButton, 0);
            CreateButtonKeys(BUTTON_FAILURE, freeAdsRemoveFailureButton, 0);

            CreateLocalisationKey(MESSAGE_SUCCESS, freeAdsRemoveSuccessMessage);
            CreateLocalisationKey(MESSAGE_FAILURE, freeAdsRemoveFailureMessage);
        }
Ejemplo n.º 2
0
 public void UseAPISettingsModel(APISettingsData settingsModel)
 {
     _settingsModelRef = settingsModel;
 }