Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- using System;
- using UnityEngine;
- using UnityEngine.UI;
-
- namespace SUISS.Promo
- {
- public class MoreGamesIcon : MonoBehaviour
- {
- public void Init(SparkSocGame item)
- {
- this.item = item;
- this.icon.texture = item.AppIcon;
- this.icon.color = ((!item.IsInstalled) ? Color.white : Color.gray);
- this.badge.sprite = ((!item.IsInstalled) ? this.NotInstalledBadge : this.InstalledBadge);
- }
-
- public void OnIconClicked()
- {
- this.item.OpenInAppStore();
- }
-
- [SerializeField]
- private RawImage icon;
-
- [SerializeField]
- private Image badge;
-
- [SerializeField]
- private Sprite NotInstalledBadge;
-
- [SerializeField]
- private Sprite InstalledBadge;
-
- private SparkSocGame item;
- }
- }
|