You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
519 B

  1. using System;
  2. using SUISS.Promo;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class OtherGameItem : MonoBehaviour
  6. {
  7. public void Init(SparkSocGame game)
  8. {
  9. this._game = game;
  10. this._gameImage.sprite = Sprite.Create(game.BannerImage, new Rect(0f, 0f, (float)game.BannerImage.width, (float)game.BannerImage.height), Vector2.one * 0.5f);
  11. }
  12. public void OnPlayButtonClicked()
  13. {
  14. this._game.OpenInAppStore();
  15. }
  16. [SerializeField]
  17. private Image _gameImage;
  18. private SparkSocGame _game;
  19. }