Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

37 lignes
733 B

  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4. namespace SUISS.Promo
  5. {
  6. public class MoreGamesIcon : MonoBehaviour
  7. {
  8. public void Init(SparkSocGame item)
  9. {
  10. this.item = item;
  11. this.icon.texture = item.AppIcon;
  12. this.icon.color = ((!item.IsInstalled) ? Color.white : Color.gray);
  13. this.badge.sprite = ((!item.IsInstalled) ? this.NotInstalledBadge : this.InstalledBadge);
  14. }
  15. public void OnIconClicked()
  16. {
  17. this.item.OpenInAppStore();
  18. }
  19. [SerializeField]
  20. private RawImage icon;
  21. [SerializeField]
  22. private Image badge;
  23. [SerializeField]
  24. private Sprite NotInstalledBadge;
  25. [SerializeField]
  26. private Sprite InstalledBadge;
  27. private SparkSocGame item;
  28. }
  29. }