您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

24 行
556 B

  1. using System;
  2. using SUISS.Promo;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class PromoPopupView : PopupBaseView
  6. {
  7. public void SetSparkSocGame(SparkSocGame game)
  8. {
  9. if (game != null && game.PromoImage != null)
  10. {
  11. 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));
  12. }
  13. }
  14. public void OnPromoClicked()
  15. {
  16. ((PromoPopupState)this.State).OpenPromoInStore();
  17. }
  18. [SerializeField]
  19. private Image _promoImage;
  20. }