using System; using SUISS.Promo; using UnityEngine; using UnityEngine.UI; public class PromoPopupView : PopupBaseView { public void SetSparkSocGame(SparkSocGame game) { if (game != null && game.PromoImage != null) { this._promoImage.sprite = Sprite.Create(game.PromoImage, new Rect(0f, 0f, (float)game.PromoImage.width, (float)game.PromoImage.height), new Vector2(0.5f, 0.5f)); } } public void OnPromoClicked() { ((PromoPopupState)this.State).OpenPromoInStore(); } [SerializeField] private Image _promoImage; }